Created
August 12, 2013 12:45
-
-
Save danielwertheim/6210530 to your computer and use it in GitHub Desktop.
Reading a book "Introducing Erlang". Simple comparison of a sample in there. Erlang vs C# in ScriptCS.
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
Func<double, double> fallVelocity = distance => System.Math.Sqrt(2 * 9.8 * distance); |
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
FallVelocity = fun(Distance) -> math:sqrt(2 * 9.8 * Distance) end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment