diff options
Diffstat (limited to 'src/utils.hs')
| -rw-r--r-- | src/utils.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.hs b/src/utils.hs index beff25e..5b78682 100644 --- a/src/utils.hs +++ b/src/utils.hs @@ -38,3 +38,8 @@ isCharStr str = breakOn :: (a -> Bool) -> [a] -> ([a], [a]) breakOn cond xs = break cond xs $> B.second (drop 1) + +mix :: [a] -> [a] -> [a] +mix (x : xs) (y : ys) = x : y : mix xs ys +mix x [] = x +mix [] y = y
\ No newline at end of file |
