Closed szabototo89 closed 10 years ago
I should redesign and refactor Optional type. It should be similar to Scala version.
Optional<Int32> value = Optional.None; Optional<String> value2 = Optional.Some("Hello World!");
It is finished and renamed to Option class. It supports filtering and mapping too:
var value = Option.Some(10).Map(v => v + 1); // == Some(11) var negative = Option.Some(12).Filter(v => v < 0); // == None
I should redesign and refactor Optional type. It should be similar to Scala version.