J

J

Installation

Binary
# Download j{ver}_{os}{arch}.tar.gz from https://code.jsoftware.com
tar xzf j{ver}_{os}{arch}.tar.gz
cd j{ver}/bin
./install-user.sh

Examples

Fibonacci Numbers
NB. Fibonacci Numbers
fib =: (($: _2 + ]) + ($: _1 + ]))` ] @. (2 > ])"0

n =. ". > _1 } ARGV
echo fib n
exit 0

NB. Example
NB.     ijconsole fib.ijs 10