This file contains hidden or 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
| class Dependency | |
| attr_accessor :Name, :Version | |
| def initialize(name, version) | |
| @Name = name | |
| @Version = version | |
| end | |
| end |
This file contains hidden or 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
| // Learn more about F# at http://fsharp.net | |
| // See the 'F# Tutorial' project for more help. | |
| [<EntryPoint>] | |
| let main argv = | |
| let nickels (x:float) = x * 0.05; | |
| let pennies (x:float) = x * 0.01; | |
| let dimes (x:float) = x * 0.10; | |
| let quarters (x:float) = x * 0.25; |
This file contains hidden or 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
| public static class ExampleCurrying { | |
| public static int Add(Func<int> a, Func<int> b){ | |
| return a() + b(); | |
| } | |
| public static int Multiply(Func<int> a, Func<int> b){ | |
| return a() * b(); | |
| } | |
| public static int Divide(Fun<int> a, Func<int> b){ |