在 Scalaz 中实现 "delayed" 列表流的好方法是什么
What is a good way to implement a "delayed" list stream in Scalaz
我试过这样做,但没有用:
Process("Hello", "Salut", "Bye", "Ciao").interleave(time.sleep(0.5.seconds).repeat)
(进程("Hello", "Salut", "Bye", "Ciao") zip (time.awakeEvery(0.5 秒))
.map(_._1)
我试过这样做,但没有用:
Process("Hello", "Salut", "Bye", "Ciao").interleave(time.sleep(0.5.seconds).repeat)
(进程("Hello", "Salut", "Bye", "Ciao") zip (time.awakeEvery(0.5 秒)) .map(_._1)