Re:Show HN: Koda, a typesafe functional toolkit for Python
by impoppy on Monday February 07, 2022 @01:58PM
(#30249344)
Please provide links so I can read on this
[ Parent
| on HN ]
Re:Show HN: Koda, a typesafe functional toolkit for Python
by muxator on Monday February 07, 2022 @03:34PM
(#30250663)
The map() function is already lazy (in python 3 it returns a generator, and not a materialized list).
You can also have a look at "generator expressions", which are the lazy counterpart to a list comprehension (hint: use " ()" instead of "[]").
Re:Show HN: Koda, a typesafe functional toolkit for Python
by dragonwriter on Monday February 07, 2022 @04:33PM
(#30251550)
> Please provide links so I can read on this
https://docs.python.org/3/library/functions.html#map