Tarean
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
23 ms·
- 181.▲
- 182.▲
- 183.▲
- 184.▲
- 185.▲
- 186.▲
- 187.▲
- 188.▲
- 189.▲
- 190.▲
- 191.▲
- 192.▲
- 193.▲
- 194.▲
- 195.▲
- 196.▲
- 197.▲
- 198.▲
- 199.▲
- 200.▲
I think an easier to understand definition uses fmap and join. Example: f x = [x, x*2]
f =<< [5, 3, 4]
join (fmap f [5, 3, 4])
join ([[5, 10], [3, 6], [4, 8]])
[5, 10, 3, 6, 4, 8]
So the pattern is fmap a fun - 201.▲
- 202.▲
- 203.▲
- 204.▲
- 205.▲
- 206.▲
- 207.▲
- 208.▲
- 209.▲
- 210.▲
More ›