tromp
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
40 ms·
- 661.▲
- 662.▲
- 663.▲
- 664.▲
- 665.▲
- 666.▲
- 667.▲
- 668.▲
- 669.▲
- 670.▲
- 671.▲
- 672.▲
- 673.▲
- 674.▲
- 675.▲
- 676.▲
- 677.▲
- 678.▲
- 679.▲
So you get, with equal probabilities, 0+1, 0+2, 1+2, 0+4, 1+4, or 2+4 = {1,2,3,4,5,6}. Same as 2:07 in the video, but using only 1/3 of the faces. Brilliant! - 680.▲
- 681.▲
- 682.▲
- 683.▲
- 684.▲
- 685.▲
- 686.▲
- 687.▲
- 688.▲
- 689.▲
How do you use that for lists that do not simply iterate, like ghci> fibs = 0 : 1 : zipWith (+) fibs (drop 1 fibs)
ghci> take 10 fibs
[0,1,1,2,3,5,8,13,21,34]
? - 690.▲
More ›