Yellowstone sequence: Difference between revisions
Content added Content deleted
m (J →explicit: more concise, roughly the same speed (sometimes faster, sometimes not)) |
m (J →explicit: maybe closer to classic syntax as used in other languages) |
||
Line 1,124: | Line 1,124: | ||
while. y > # s do. |
while. y > # s do. |
||
z=. <./(1+s)-.s NB. lowest positive inteeger not in sequence |
z=. <./(1+s)-.s NB. lowest positive inteeger not in sequence |
||
⚫ | |||
while. |
|||
⚫ | |||
⚫ | |||
end. NB. find next value for sequence |
|||
⚫ | |||
do. z=. z+1 end. NB. find next value for sequence |
|||
s=. s, z |
s=. s, z |
||
end. |
end. |