We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I was about to explain how your approach wouldn't be too hard in Haskell, but then I realised I'd probably implement it using a stack of 3 monad transformers (StateT (Int, Zipper Int) (MaybeT (Writer (Endo String))) ()).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
BrainF__k interpreter
You are viewing a single comment's thread. Return to all comments →
I was about to explain how your approach wouldn't be too hard in Haskell, but then I realised I'd probably implement it using a stack of 3 monad transformers (
StateT (Int, Zipper Int) (MaybeT (Writer (Endo String))) ()
).