foldright implementation of take

前端 未结 0 979
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 23:50

i\'m trying to implement the "take(stream, n)" function for a stream, using a fold function. (foldright)

So, I need something that that can return a stream

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