This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
01:06 Manifest0 left 02:53 librasteve_ left 07:06 jaguart joined 08:53 dakkar joined 17:37 dakkar left 20:18 Manifest0 joined 21:42 habere-et-disper joined 22:13 habere-et-disper left 22:29 habere-et-disper joined
habere-et-disper `rotate(0)` seems to do weird things -- but I think this is known ? 22:36
When trying to write the Burrows-Wheeler transform, it would be swell if rotate could also take a range as that makes for the initial matrix. 22:42
I'd like to write something like `<a b c d>.rotate( ^4 )`, instead of:
m: gather take <a b c d>.rotate( $_ ) for ^4
camelia ( no output )
habere-et-disper m: say gather take <a b c d>.rotate( $_ ) for ^4 22:43
camelia ((a b c d) (b c d a) (c d a b) (d a b c))
22:51 habere-et-disper left
lizmat m: dd <a b c d>.rotate(0) 23:19
camelia ("a", "b", "c", "d").Seq
lizmat how is that weird ?
m: dd (^4).map: { <a b c d>.rotate( $_ ) } 23:21
camelia (("a", "b", "c", "d").Seq, ("b", "c", "d", "a").Seq, ("c", "d", "a", "b").Seq, ("d", "a", "b", "c").Seq).Seq
lizmat m: dd (^4).map: { <a b c d>.rotate( $_ ).List }
camelia (("a", "b", "c", "d"), ("b", "c", "d", "a"), ("c", "d", "a", "b"), ("d", "a", "b", "c")).Seq