Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
New functionalities of Supply.head using WhateverCode #3527
  • Loading branch information
JJ committed Jul 26, 2020
1 parent 1db69d6 commit acf784f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Supply.pod6
Expand Up @@ -397,8 +397,8 @@ Creates a "head" supply with the same semantics as L<List.head|/type/List#method
my $hs = $s.head(2);
$hs.tap(&say); # OUTPUT: «4␤10␤»
A C<WhateverCode> can be used also, again with the same semantics as
C<List.head>
Since release 2020.07, A C<WhateverCode> can be used also, again with the same
semantics as C<List.head>
my $s = Supply.from-list(4, 10, 3, 2, 1);
my $hs = $s.head( * - 2);
Expand Down

0 comments on commit acf784f

Please sign in to comment.