codesnippets:listcomprehension
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| codesnippets:listcomprehension [2021/04/10 13:47] โ created f2b216 | codesnippets:listcomprehension [2025/10/08 00:48] (current) โ external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * syntactic sugar to apply set operations to lists | * syntactic sugar to apply set operations to lists | ||
| * syntax := " | * syntax := " | ||
| - | * e.g. '' | + | * e.g. '' |
| * creates a list | * creates a list | ||
| * of reciprocal numbers ('' | * of reciprocal numbers ('' | ||
| Line 26: | Line 26: | ||
| data Maybe a = Just a | Nothing | data Maybe a = Just a | Nothing | ||
| - | x = [ch | (Just ch) <- [Just ' | + | x = [ch | (Just ch) <- [Just ' |
| * excutes, with output:< | * excutes, with output:< | ||
| " | " | ||
| </ | </ | ||
| + | |||
| + | ===== โ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/listcomprehension.1618055275.txt.gz ยท Last modified: (external edit)
