Home

Shell Supports Point-Free Programming

2017-01-13

top-k() { local k=$1 sort | uniq -c | sort -n -r | head -n $k }

This still mentions the points the

retry-timeout() { local seconds=$1 local times=$2 timeout $seconds retry $times $0 "$@"
}

retry-timeout 5 0.1 sleep-echo 0.1


Discuss this post on Reddit