Skip to content

Commit ef69b16

Browse files
committed
Added usage statements for ACCEPTS and junctions to Any.pod
1 parent 119dd07 commit ef69b16

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lib/Type/Any.pod

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,28 @@ List or a list-like type.
1818
1919
=head2 method ACCEPTS
2020
21+
Defined as:
22+
2123
multi method ACCEPTS(Any:D: Mu $other)
2224
25+
Usage:
26+
27+
EXPR.ACCEPTS(EXPR);
28+
2329
Returns C<True> if C<$other === self> (i.e. it checks object identity).
2430
2531
Many built-in types override this for more specific comparisons
2632
2733
=head2 method any
2834
35+
Defined as:
36+
2937
method any() returns Junction:D
3038
39+
Usage:
40+
41+
LIST.any
42+
3143
Interprets the invocant as a list and creates an
3244
C<any>-L<Junction|/type/Junction> from it.
3345
@@ -36,8 +48,14 @@ C<any>-L<Junction|/type/Junction> from it.
3648
3749
=head2 method all
3850
51+
Defined as:
52+
3953
method all() returns Junction:D
4054
55+
Usage:
56+
57+
LIST.any
58+
4159
Interprets the invocant as a list and creates an
4260
C<all>-L<Junction|/type/Junction> from it.
4361
@@ -46,8 +64,14 @@ C<all>-L<Junction|/type/Junction> from it.
4664
4765
=head2 method one
4866
67+
Defined as:
68+
4969
method one() returns Junction:D
5070
71+
Usage:
72+
73+
LIST.one
74+
5175
Interprets the invocant as a list and creates an
5276
C<one>-L<Junction|/type/Junction> from it.
5377
@@ -56,8 +80,14 @@ C<one>-L<Junction|/type/Junction> from it.
5680
5781
=head2 method none
5882
83+
Defined as:
84+
5985
method none() returns Junction:D
6086
87+
Usage:
88+
89+
LIST.none
90+
6191
Interprets the invocant as a list and creates an
6292
C<none>-L<Junction|/type/Junction> from it.
6393

0 commit comments

Comments
 (0)