On this rosetta code page for the Hilbert Curve
<https://rosettacode.org/wiki/Hilbert_curve#J>, I tried running the code,
but I get an error:
iter=: (, 1 , +@|.) @: (,~ 0j_1 ,~ 0j_1*|.)
hilbert=: {{0j1+(%{:) +/\0,iter ^: y ''}}
require 'plot'
plot hilbert 5
|value error: iter
| 0j1+(%{:)+/\0, iter^:y''
plot hilbert 5
I am running this on J903, not J902, but i don't see why it isn't running.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm