Skip to content

Instantly share code, notes, and snippets.

@Sheeo
Created March 21, 2012 18:32
Show Gist options
  • Save Sheeo/2150869 to your computer and use it in GitHub Desktop.
Save Sheeo/2150869 to your computer and use it in GitHub Desktop.
mat
|> Array.iteri (fun m i -> Array.iter (fun n -> printfn "%d" mat.[m].[n]) mat.[m])
// vs
mat
|> Array.iteri (fun m i -> mat.[m]
|> (fun n -> printfn "%d" mat.[m].[n]))
// vs
(Array.iteri (fun m i -> Array.iter (fun n -> printfn "%d" mat.[m].[n]) mat.[m])) mat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment