
5 Feb
2016
5 Feb
'16
4:58 p.m.
Thanks for the quick reply! No, that wouldn’t work as that would tie a tuple to Int, Double,String for all tuples. (1,1,2,3,”string”, 4.5, “string”, 1) is also valid tuple In Java I would use List<Object> so any number of (non-primitives) can be used. Thanks Mike
On 5 Feb 2016, at 21:43, Imants Cekusins
wrote: T = (1, ”A string”, 3.4) i.e. an int, string and double.
would this suit:
data Object = Int' Int | Double' Double | String' String type T = [Object]
? _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners