Infinite Lists / Streams in ReScript

后端 未结 0 1894
难免孤独
难免孤独 2021-01-13 03:29

I can\'t seem to find the correct typing for an infinite list in ReScript.

I first tried:

type rec stream<\'a> = (\'a, () => (\'a, stream<\         


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