3 ms·
map({ $_ %% 2 ?? $_ !! 2**(n-1) }) Ternaries in Perl 6 are done with ?? and !!, not with ?? and ::
by lizmat 8y ago
map({ $_ %% 2 ?? $_ !! 2**(n-1) })
Ternaries in Perl 6 are done with ?? and !!, not with ?? and ::
- daotoad 8y agoMy fingers hate that and I always, always get it wrong. Always. Fortunately the error messages are very good.