-
-
Save zoffixznet/8f52e9f2a2ecdeadd35780decd6ce77b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multi method lines(IO::Path:D: | |
:$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c | |
) { | |
self.open(:$chomp, :$enc, :$nl-in).lines: |c, :close | |
} | |
multi method comb(IO::Path:D: | |
:$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c | |
) { | |
self.open(:$chomp, :$enc, :$nl-in).comb: |c, :close | |
} | |
multi method split(IO::Path:D: | |
:$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c | |
) { | |
self.open(:$chomp, :$enc, :$nl-in).split: |c, :close | |
} | |
multi method words(IO::Path:D: | |
:$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c | |
) { | |
self.open(:$chomp, :$enc, :$nl-in).words: |c, :close | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment