Haskell: Implementing the length function with zf notation

前端 未结 0 1388
栀梦
栀梦 2021-01-25 01:20

How can i implement the length function in haskell by using list comprehension? An example.

take [x| x<- [1,2,3], even]

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