Created
March 27, 2015 22:46
-
-
Save tangentsoft/2494341dc23d7ba95f7f to your computer and use it in GitHub Desktop.
F# reimplementation of James McCaffrey's C# code here: https://jamesmccaffrey.wordpress.com/2015/03/01/why-i-dont-like-the-f-language/
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
let tickTock() = | |
for i = 0 to 10 do | |
if i % 2 = 0 then | |
printfn "tick %d" i | |
else | |
printfn "tock %d" i | |
tickTock() | |
System.Console.ReadLine() |> ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment