First class environments: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Sidef}}: Fix link: Perl 6 --> Raku) |
||
Line 1,907: | Line 1,907: | ||
=={{header|Sidef}}== |
=={{header|Sidef}}== |
||
{{trans| |
{{trans|Raku}} |
||
<lang ruby>func calculator({.is_one} ) { 1 } |
<lang ruby>func calculator({.is_one} ) { 1 } |
||
func calculator(n {.is_even}) { n / 2 } |
func calculator(n {.is_even}) { n / 2 } |