Element - ṡ
- Sort by Function
Characters:
ṡ
Description
Sort a list by a function / create a range / split on a regex
Overloads
any-fun
-sorted(a, key=b) (sort by b)
num-num
-range(a, b + 1) (inclusive range from a to b)
str-str
-regex.split(pattern=b, string=a)
Examples
3 4 ṡ
=⟨3|4⟩
1 5 ṡ
=⟨1|2|3|4|5⟩
-1 -5 ṡ
=⟨-1|-2|-3|-4|-5⟩
`abc1def2ghi` `\d+` ṡ
=⟨`abc`|`def`|`ghi`⟩