Skip to content

Commit

Permalink
Add Cool candidate for .is-prime
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Dec 25, 2017
1 parent 9cb2170 commit f01c50f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Cool.pm
Expand Up @@ -35,6 +35,8 @@ my class Cool { # declared in BOOTSTRAP
method acotanh() { self.Numeric.acotanh }
method cis() { self.Numeric.cis }

method is-prime(--> Bool:D) { self.Int.is-prime }

proto method log(|) {*}
multi method log(Cool:D: ) { self.Numeric.log }
multi method log(Cool:D: $base) { self.Numeric.log($base.Numeric) }
Expand Down

4 comments on commit f01c50f

@evb0110
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizmat Great, thank you!

@FCO
Copy link
Member

@FCO FCO commented on f01c50f Dec 25, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizmat
Copy link
Contributor Author

@lizmat lizmat commented on f01c50f Dec 25, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizmat
Copy link
Contributor Author

@lizmat lizmat commented on f01c50f Dec 25, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.