Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement Int.sqrt
  • Loading branch information
moritz committed Jul 1, 2011
1 parent 33047f8 commit f1fc5ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Int.pm
Expand Up @@ -29,6 +29,8 @@ my class Int {
method succ(Int:D:) { self + 1 }

method pred(Int:D:) { self - 1 }

method sqrt() { self.Num.sqrt }
}

multi prefix:<++>(Int:D \$a is rw) { # XXX
Expand Down

0 comments on commit f1fc5ed

Please sign in to comment.