Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for #126897
And some code layout and doc
  • Loading branch information
lizmat committed Dec 13, 2015
1 parent 782f4b6 commit 82f273b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/Slip.pm
@@ -1,14 +1,15 @@
# A Slip is a kind of List that is immediately incorporated into an iteration
# or another List. Other than that, it's a totally normal List.
my class Slip {
my class Slip { # is List
multi method Slip(Slip:D:) { self }
method defined () { self.so }
method CALL-ME (+args) { args.Slip }
method defined () { self.so }
method CALL-ME (+args) { args.Slip }
multi method perl(Slip:D:) { 'slip' ~ callsame }
}

# The slip(...) function creates a Slip.
proto slip(|) { * }
multi slip() { Empty }
proto slip(|) { * }
multi slip() { Empty }
multi slip(+args) { args.Slip }

# vim: ft=perl6 expandtab sw=4

0 comments on commit 82f273b

Please sign in to comment.