How to merge sorted sequences?

前端 未结 3 972
自闭症患者
自闭症患者 2021-01-04 19:45

Here’s a problem I’ve really been struggling with. I need to merge two sorted sequences into a single sorted sequence. Ideally, the algorithm should be lazy-evaluated, and

3条回答
  •  -上瘾入骨i
    2021-01-04 20:09

    Use the LazyList type in the PowerPack. I think I maybe even have this exact code lying around, let me look...

    EDIT

    not exactly it, but close: http://cs.hubfs.net/forums/thread/8136.aspx

提交回复
热议问题