diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-10-04 11:25:52 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-10-04 11:25:52 +0200 |
commit | 6e05f595786839770fe9cdaa477dd3162f540585 (patch) | |
tree | efaafbc07cb7d9da89c0b0c0186f533c4de62f0f /rip.hs | |
parent | e44c1a43fb599821e27b593d47285d0499080c42 (diff) |
Add l (length) instruction
Diffstat (limited to 'rip.hs')
-rw-r--r-- | rip.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -150,6 +150,9 @@ rip' code@(x:xs) fns st = do (begin, rest) = (take n newst, drop n newst) res = last begin : init begin ++ rest --SLOW! + 'l' -> + rip' xs fns (fromIntegral (length st) : st) + 'a' -> rip' xs fns (a + b : cs) where (b:a:cs) = st |