Marching squares: Difference between revisions

m
→‎{{header|J}}: not quite so lame, but still lame
(J: lame partial implementation -- no treatment of saddle points (this version will throw an error for saddle points))
m (→‎{{header|J}}: not quite so lame, but still lame)
Line 20:
0 0,:0 1 NB. 3
0 0,:1 1 NB. 4
a0 1,:1 0 NB. 5 not used
0 0,:1 0 NB. 6
a: EMPTY NB. 7 0 1,:1 0
1 0,:0 1 NB. 8
1 1,:0 1 NB. 9
a0 0,:1 1 NB. 10 not used
a: EMPTY NB. 11 not0 0,:1 used1
a1 0,:1 1 NB. 12 not used
a: EMPTY NB. 13 not0 1,:1 used0
EMPTY NB. 14 0 0,:1 1
EMPTY NB. 15
}}
 
unwind=: {{
near=. 6 7 8 5 12 3 1 0 {,(+/~ *&({:$y))i:1
r=., c=. EMPTY
TODO=. I.(<EMPTY)~:Y=.,y
6,951

edits