Added pick and select for lists

Pick: (1 2 3 4)?4 or (1 2 3 4)?(3 2)
Select: (1 2 3 4)~2 or (1 2 3 4)~(2 3)
This commit is contained in:
2023-04-26 21:14:21 +03:00
parent cc3497fd29
commit 8f5d8adf48
6 changed files with 57 additions and 7 deletions

View File

@ -62,7 +62,9 @@ OPERATORS = MappingProxyType({
">>": operator.irshift,
"@": "vertical",
"#": "horizontal",
"<>": "zip"
"<>": "zip",
"?": "pick",
"~": "select"
})