Comment

Comment by catnaroek

> List comprehension should be no stranger to a Python or (and?) Haskell user. It’s a really compact syntax that deals with Cartesian product [emphasis mine] of lists.

Ugh, no. I fail to see where the Cartesian product is in::

    [(x,y,z) | x <- [1..5], y <- [x..10], z <- [x..y]]
---

@dennisvennink

What you feel doesn't matter. It's not a zip.

parent catnaroek 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton