@dibblego Awyea Hole driven development for the win mover (Z _ _ []) = Nothing and mover (Z le x r) = Just (Z (le ++ [x]) (head r) (tail r))
@clinton_freeman you want to stick previous focus on front of lefts. Also pattern match the head/tail.
-
-
@dibblego We had to put previous focus on end of lefts to pass our 'unit test' on the front generates [4,1,2,3] 5 [6,7] vs [1,2,3,4] 5 [6,7] -
@clinton_freeman you shouldn't have to. Should all be O(1) operations. - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.