How to find length of lists in lists in haskell?

后端 未结 0 1090
说谎
说谎 2020-12-16 00:08
snoc :: [a] -> a -> [a]
snoc [] a = [a]
snoc (h : t) a = h : t `snoc` a

lsplit :: Eq a => a -> [a] -> [[a]]
ls         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题