Sample code from blog post Non-transitive Grime Dice, via Mathematica.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#time ;; | |
let testNoTry () = | |
let mutable x = 0 | |
for i in 1 .. 1000000000 do | |
x <- x + 1 | |
x | |
let testTry () = | |
let mutable x = 0 |
Backing code and examples for two different mini-frameworks adding extended imperative-style for
loops in F#.
Discussed in blog post here.
NewerOlder