About 3,770,000 results
Open links in new tab
  1. python - Generating an infinite list? - Stack Overflow

    Aug 15, 2018 · 7 Languages with "infinite" data structures are actually producing objects that produce their values lazily, or "on-demand". Rather than creating the entire list up front, they create an object …

  2. foldl versus foldr behavior with infinite lists - Stack Overflow

    This is why foldr can process infinite lists and foldl can't--the right fold first applies f to the first list element and the (unevaluated) result of folding the tail, while the left fold must traverse the entire list …

  3. haskell - Test Equality of Infinite Lists - Stack Overflow

    Nov 16, 2025 · In Haskell, how should one test the equality of two infinite lists? With finite lists, one might try:

  4. Haskell how to generate this infinite list? - Stack Overflow

    Nov 3, 2013 · Haskell how to generate this infinite list? Asked 12 years, 2 months ago Modified 4 years, 3 months ago Viewed 25k times

  5. haskell - How does foldr work? - Stack Overflow

    And it's important in understanding the operation of Haskell's foldr; because, in fact, foldr builds up and reduces computations recursively from the left, binary operators that can short-circuit have an …

  6. Understanding the representation of inifinite lists as the limit of ...

    Nov 12, 2016 · The author says :- The idea is that an infinite list is to be understood as a limit of partial lists. And after that, the author goes on to explain the execution of the expression :- filter (< 3) [1..] …

  7. Build sorted infinite list of infinite lists - Stack Overflow

    Oct 14, 2021 · You need to merge the lists. You can always merge two sorted lists, finite or not. Try merging two lists first. Then think of how an infinite number of lists could be merged and under what …

  8. python - list with infinite elments - Stack Overflow

    I need to operate on two separate infinite list of numbers, but could not find a way to generate, store and operate on it in python. Can any one please suggest me a way to handle infinite Arithmetic

  9. Are infinite lists useful for any real world applications?

    Dec 20, 2010 · Infinite data structures (including lists) give a huge boost to modularity and hence reusability, as explained & illustrated in John Hughes's classic paper Why Functional Programming …

  10. How to define infinite lists? - Mathematics Stack Exchange

    5 $\omega$ is standard notation for the first infinite ordinal, denoting the order type of the natural numbers under their usual ordering. With the usual Von Neumann ordinals, this is represented by the …