Skip to content

Instantly share code, notes, and snippets.

@ninegrid
Last active August 29, 2015 14:02
Show Gist options
  • Save ninegrid/b6f8f7d93aaa0c6209da to your computer and use it in GitHub Desktop.
Save ninegrid/b6f8f7d93aaa0c6209da to your computer and use it in GitHub Desktop.
#time
(fun _ ->
let initial =
[for x = 0 to 100 do
for y = 0 to 100 do
if (1 < x) && (x < y) && ((x + y) < 100) then
yield (x,y)]
List.iter (fun _ -> ()) initial
)()
// Real: 00:00:00.005, CPU: 00:00:00.006, GC gen0: 0, gen1: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment