Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root(s) - missing prefix operators #428

Open
Tux opened this issue May 20, 2024 · 1 comment
Open

Root(s) - missing prefix operators #428

Tux opened this issue May 20, 2024 · 1 comment
Labels
language Changes to the Raku Programming Language

Comments

@Tux
Copy link

Tux commented May 20, 2024

say √25; # expect 5
say √π; # expect 1.77245...

say ∛27; # expect 3
say ∜16; # expect 2

sub prefix:<√>(Numeric $n) { $n.sqrt }

Others are beyond my raku knowledge

Only problem I can spot is other scripts/programs/modules/scopes already defined it

@Tux Tux added the language Changes to the Raku Programming Language label May 20, 2024
@lizmat
Copy link
Collaborator

lizmat commented May 20, 2024

Only problem I can spot is other scripts/programs/modules/scopes already defined it

That is not a problem in Raku: inner lexical defines always supersede outer defines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Changes to the Raku Programming Language
Projects
None yet
Development

No branches or pull requests

2 participants