[release] merge previous version into master to avoid the increased version number
This commit is contained in:
commit
5979ac8548
3 changed files with 23 additions and 2 deletions
2
.version
2
.version
|
@ -1 +1 @@
|
|||
2.0
|
||||
2.1
|
||||
|
|
|
@ -346,4 +346,5 @@ Adam,Monika,Slawek,Daniel,Bartek
|
|||
|
||||
|
||||
# Resources
|
||||
* [Inspiration](https://quasimal.com/posts/2012-05-21-funsh.html)
|
||||
* [Inspiration](https://quasimal.com/posts/2012-05-21-funsh.html)
|
||||
* [Functional Programming in Bash](https://medium.com/@joydeepubuntu/functional-programming-in-bash-145b6db336b7)
|
20
src/fun.sh
20
src/fun.sh
|
@ -193,6 +193,26 @@ filter() {
|
|||
done
|
||||
}
|
||||
|
||||
pass() {
|
||||
echo > /dev/null
|
||||
}
|
||||
|
||||
dropw() {
|
||||
local x
|
||||
while read x && $(echo "$x" | "$@"); do
|
||||
pass
|
||||
done
|
||||
[[ ! -z $x ]] && { echo $x; cat -; }
|
||||
}
|
||||
|
||||
peek() {
|
||||
local x
|
||||
while read x; do
|
||||
([ $# -eq 0 ] && 1>&2 echo $x || 1>&2 "$@" < <(echo $x))
|
||||
echo $x
|
||||
done
|
||||
}
|
||||
|
||||
stripl() {
|
||||
local arg=$1
|
||||
cat - | map lambda l . 'ret ${l##'$arg'}'
|
||||
|
|
Loading…
Reference in a new issue