2 ms·
> import Data.Maybe > let maybe_use_haskell = [ Just 2, Just 4 ] also, in you could do your original example in a single line, List<T> ts = new List<T>(List.
by auvrw 13y ago
> import Data.Maybe
> let maybe_use_haskell = [ Just 2, Just 4 ]
also, in you could do your original example in a single line,
List<T> ts = new List<T>(List.fromArray({T(2),T(4)}));
even though it's still messier than something with type inference.