Gray code by KirarinSnow

z=#(read)y=#format
#(y #t(y"Gray code  n=~s~~{
~~~s,'0b~~}"z z)(map(lambda(x)(logxor(ash x -1)x))(iota(ash 1 z))))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page