Skip to content

Commit

Permalink
Update .lines and .words more to reality
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 20, 2015
1 parent 3f0277c commit c432736
Showing 1 changed file with 4 additions and 41 deletions.
45 changes: 4 additions & 41 deletions S32-setting-library/IO.pod
Expand Up @@ -862,30 +862,10 @@ absolute path.
=head3 .lines
X<.lines>

method lines($limit = Inf,
:$eager = (context),
--> List[Str] )

method lines($limit = Inf, :count --> Int)
method lines( --> List[Str] )

Returns a (lazy) list of lines of which the file consists, or a C<Failure>
if something went wrong. Optionally limits to the number given. Also takes
the following optional named parameters:

=over 4

=item :eager

If specified with a C<True> value, will generate the list of lines eagerly,
which may provide a performance benefit. By default, it takes its cue from the
context in which the method executes.

=item :count

If specified with a C<True> value, will return a count of the number of lines,
rather than the lines themselves. By default, lines will be returned.

=back
if something went wrong.

=head3 .mkdir
X<.mkdir>
Expand Down Expand Up @@ -1016,16 +996,10 @@ concept of volume in the path, returns the empty string.
=head3 .words
X<.words>

method words($limit = Inf,
:$nw = "WS",
:$eager = (context),
--> List[Str] )

method words($limit = Inf, :count --> Int)
method words( :$nw = "WS" --> List[Str] )

Returns a (lazy) list of words of which the file consists, or a C<Failure>
if something went wrong. Optionally limits to the number given. Also takes
the following optional named parameters:
if something went wrong. Also takes the following optional named parameters:

=over 4

Expand All @@ -1034,17 +1008,6 @@ the following optional named parameters:
The delimiter between what are to be considered words. By default assumes
C<"WS">, which indicates any whitespace character.

=item :eager

If specified with a C<True> value, will generate the list of words eagerly,
which may provide a performance benefit. By default, it takes its cue from the
context in which the method executes.

=item :count

If specified with a C<True> value, will return a count of the number of words,
rather than words themselves. By default, words will be returned.

=back

=head3 Subclasses
Expand Down

0 comments on commit c432736

Please sign in to comment.