http://twitter.com/AppleScriptive/ | |
Blog | (not set) |
Website | (not set) |
0
score
|
(Pseudo)random 6-digit number$ let N=0 N=N+10**{0..5}*${RANDOM:0:1} |
0
score
|
Compute factorial of positive integer using only built-ins$ bang() ( eval let N=1 N*={1..$1} ; echo $N; ) |
2
score
|
Generate a sequence of numbers$ printf '%s\n' {1..10} |
0
score
|
Recursively compute factorial of positive integer using only built-ins$ bang() ( IFS=\*; let N=$1-1 k="$*" && bang $N $k || echo ${2-1} ) |