Advertisement
Guest User

341_haskell

a guest
Dec 15th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. lCPrefix :: Eq a => [a] -> [a] -> [a]
  2. lCPrefix _ [] = []
  3. lCPrefix [] _ = []
  4. lCPrefix (x:xs) (y:ys)
  5. | x == y = x : lCPrefix xs ys
  6. | otherwise = []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement