codesnippets:scans
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| codesnippets:scans [2021/04/30 21:42] – created f2b216 | codesnippets:scans [2025/10/08 00:48] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| main = do | main = do | ||
| print $ scanl (\nAcc -> \(_, n) -> nAcc + n) (0 :: Integer) (zip " | print $ scanl (\nAcc -> \(_, n) -> nAcc + n) (0 :: Integer) (zip " | ||
| - | |||
| </ | </ | ||
| + | * executes, with output:< | ||
| + | [0, | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== ✎ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/scans.1619811774.txt.gz · Last modified: (external edit)
