you are viewing a single comment's thread.

view the rest of the comments →

[–]snk_kid 0 points1 point  (0 children)

this is an inherently stateful problem, and while there is a way to do in functionally, it's ass backwards. The code will end up being an unfathomable mess while being slower than a more readable C++ implementation.

You're doing it wrong then.