Closed lynn closed 8 years ago
Œc
œc2
Œċ
œċ2
Œg
2,2,2,2,3,3,6,6,6Œg
[[2, 2, 2, 2], [3, 3], [6, 6, 6]]
Œr
2,2,2,2,3,3,6,6,6Œr
[[2, 4], [3, 2], [6, 3]]
Œṙ
2,4,3,2,6,3s2Œṙ
[2, 2, 2, 2, 3, 3, 6, 6, 6]
Œṡ
3,5,0Œṡ
[[3], [5], [0], [3, 5], [5, 0], [3, 5, 0]]
Œc
is short forœc2
, andŒċ
is short forœċ2
.Œg
groups like elements:2,2,2,2,3,3,6,6,6Œg
→[[2, 2, 2, 2], [3, 3], [6, 6, 6]]
.Œr
run-length encodes a list:2,2,2,2,3,3,6,6,6Œr
→[[2, 4], [3, 2], [6, 3]]
.Œṙ
run-length decodes a list of pairs:2,4,3,2,6,3s2Œṙ
→[2, 2, 2, 2, 3, 3, 6, 6, 6]
.Œṡ
returns all substrings of a list:3,5,0Œṡ
→[[3], [5], [0], [3, 5], [5, 0], [3, 5, 0]]
.