Skip to content

Commit

Permalink
implement Cool.succ and .pred
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 30, 2010
1 parent 478ba48 commit 1727ca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/Makefile.in
Expand Up @@ -179,6 +179,7 @@ CORE_SOURCES = \
src/core/Parcel.pm \
src/core/Any.pm \
src/core/Any-list.pm \
src/core/Cool.pm \
src/core/Cool-num.pm \
src/core/Cool-str.pm \
src/core/Seq.pm \
Expand Down
4 changes: 4 additions & 0 deletions src/core/Cool.pm
@@ -0,0 +1,4 @@
augment class Cool {
multi method succ() { (~self).succ }
multi method pred() { (~self).pred }
}

0 comments on commit 1727ca5

Please sign in to comment.