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))
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