Execute SNUSP: Difference between revisions
m
→{{header|Julia}}
Line 134:
end
('\\', ()-> (d = Int(direction); d += (iseven(d) ? 1 : -1); direction = Direction(d))),
▲ lurd() = (d = Int(direction); d += (iseven(d) ? 1 : -1); direction = Direction(d))
▲ enter() = (push!(stack, (ipx, ipy, direction)))
▲ leave() = (if length(stack) > 0 (ipx, ipy, direction) = pop!(stack) end)
▲ stop() = (running = false)
inboundsx(plus) = (plus ? (ipx < lmax) : (ipx > 1)) ? true : exit(data[dp])
Line 177 ⟶ 171:
>
</pre>
=={{header|Kotlin}}==
|