I hereby claim:
- I am rjwebb on github.
- I am rjwebb (https://keybase.io/rjwebb) on keybase.
- I have a public key ASCv0-ae5IB77dqQ1VbY6tdmVD-Ow0Mb2SFWcKn9ZPPbggo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Control.Monad (liftM) | |
| import Data.List (find) | |
| -- Given a list it returns the consecutive pairs of items in the list | |
| pairs :: [a] -> [(a, a)] | |
| pairs values = zip values (tail values) | |
| -- Given a list, this function returns the first item whose difference | |
| -- between it and the previous item is less than `threshold` |
| """ | |
| A toy Brainfuck implementation in Python. | |
| In this implementation, the length of tape is infinite in both directions (I used two stacks for the left and right | |
| sides of the tape) and the values on the tape are 0 <= x < 256. | |
| """ | |
| def jump_to_closing_bracket(start_i, program): | |
| """ |