Remove elements by index in haskell

后端 未结 8 883

I\'m new in haskell and I\'m looking for some standard functions to work with lists by indexes.

My exact problem is that i want to remove 3 elements after every 5. If i

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 23:55

    myRemove = map snd . filter fst . zip (cycle $ (replicate 5 True) ++ (replicate 3 False))
    

提交回复
热议问题