Skip to content

Commit a2ac522

Browse files
committed
Document elems on Seq
1 parent 44903fd commit a2ac522

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Type/Seq.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ Returns the underlying iterator, and marks the invocant as consumed.
7575
If called on an already consumed sequence, throws an error of type
7676
L<X::Seq::Consumed|/type/X::Seq::Consumed>.
7777
78+
=head2 method elems
79+
80+
method elems(Seq:D:)
81+
82+
If the caller C<Seq> is not lazy, consumes and caches its values,
83+
returning their length. Otherwise, throws an error of type
84+
L<X::Cannot::Lazy|/type/X::Cannot::Lazy>.
85+
7886
=head2 method is-lazy
7987
8088
method is-lazy(Seq:D: --> Bool:D)

0 commit comments

Comments
 (0)