4import Control.Monad.Eff
7collatz :: Number -> Number
8collatz n = runPure (runST (do
12 modifySTRef count $ (+) 1
14 writeSTRef r $ if m % 2 == 0 then m / 2 else 3 * m + 1
18main = Debug.Trace.print $ collatz 1000
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list