Twitter 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}

Dec. 7, 2019, 3:26 p.m.CK

0 score

Compute factorial of positive integer using only built-ins

 $ factorial() { eval let N=1 N*={1..$1} ; echo $N; }

Nov. 29, 2019, 9:06 p.m.CK

1 score

Generate a sequence of numbers

 $ printf '%s\n' {1..10}

Nov. 25, 2019, 8:11 a.m.CK

0 score

Recursively compute factorial of positive integer using only built-ins

 $ factorial() {  [ "$1" = "0" ] && echo ${2:-1} || factorial $(( $1 - 1 )) $(( ${2:-1} * $1 )); }

Nov. 25, 2019, 8:06 a.m.CK