123 Commits

Author SHA1 Message Date
Dimitry Ishenko
cf440e0802 collection.sh: clean up collection::find 2023-01-05 23:41:04 -05:00
Dimitry Ishenko
fdfce4cd08 collection.sh: arg -> it
This is for Kotlin-style lambda expressions, eg:

collection::filter '[[ "$it" == "a" ]]' < <(...)
2023-01-05 23:41:04 -05:00
Dimitry Ishenko
7032b06f05 collection.sh: simplify few functions 2022-12-23 13:54:22 -05:00
Dimitry Ishenko
7dbe257144 collection.sh: consistent use of braces 2022-12-23 13:47:25 -05:00
Dimitry Ishenko
a674a666b1 check.sh: consistent use of braces 2022-12-23 13:43:47 -05:00
Dimitry Ishenko
397fceb8a7 array.sh: consistent use of braces 2022-12-23 13:43:18 -05:00
Dimitry Ishenko
605f0a2cd7 collection.sh: clean up collection::filter 2022-12-23 10:21:45 -05:00
Dimitry Ishenko
1fc5b9aa2b collection.sh: clean up collection::every 2022-12-23 10:21:45 -05:00
Dimitry Ishenko
70f7b0835c array.sh: fix typos 2022-12-22 23:28:08 -05:00
Dimitry Ishenko
a2f0898cf6 collection.sh: clean up collection::each 2022-12-22 23:28:08 -05:00
Dimitry Ishenko
26ef8a5e8b collection.sh: simplify error reporting
Use (()) for arithmetic eval.
Don't pollute stdout with errors.
2022-12-22 15:02:33 -05:00
Dimitry Ishenko
5037a52067 check.sh: don't pollute stdout with errors 2022-12-22 14:57:15 -05:00
Dimitry Ishenko
dcfbc38aae array.sh: don't pollute stdout with errors 2022-12-22 14:56:22 -05:00
Dimitry Ishenko
f073089820 check.sh: clean up 2022-12-22 10:38:43 -05:00
Dimitry Ishenko
ed47249e37 array.sh: don't need ${} here 2022-12-21 17:00:30 -05:00
Dimitry Ishenko
3de5eb5180 array.sh: clean up array::merge 2022-12-21 16:39:51 -05:00
Dimitry Ishenko
265ac51fd5 array.sh: clean up array::bsort 2022-12-21 16:36:15 -05:00
Dimitry Ishenko
e000a825e9 array.sh: clean up array::rsort 2022-12-21 16:31:02 -05:00
Dimitry Ishenko
cd029abceb array.sh: clean up array::sort 2022-12-21 16:30:32 -05:00
Dimitry Ishenko
bfe3abc07c array.sh: clean up array::random_element 2022-12-21 16:29:57 -05:00
Dimitry Ishenko
1034991333 array.sh: clean up array::reverse 2022-12-21 16:29:31 -05:00
Dimitry Ishenko
c82fcd837d array.sh: clean up array::join 2022-12-21 16:28:35 -05:00
Dimitry Ishenko
00869ee5d6 array.sh: clean up array::is_empty 2022-12-21 16:27:54 -05:00
Dimitry Ishenko
6ec64ea9ee array.sh: clean up array::dedupe 2022-12-21 16:26:59 -05:00
Dimitry Ishenko
3a6d135fc2 array.sh: clean up array::contains 2022-12-21 16:19:47 -05:00