sumankhanal

map_raku

May 24th, 2020
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.20 KB | None | 0 0
  1. say map *.Str.chars, 'hello', 1, 22/7, 42, 'world'; # OUTPUT: «(5 1 8 2 5)␤»
  2.  
  3. # Here *.Str.chars is called on 22/7 which results in 8
  4. # Should not it be 4
  5. # Because
  6.  
  7. say '22/7'.Str.chars; # OUTPUT: 4
Add Comment
Please, Sign In to add comment