<div dir="ltr"><div>HList.<br><br></div>Also in Java, you'd use HList (never use Object).<br><a href="http://www.functionaljava.org/javadoc/4.0/fj/data/hlist/HList.html">http://www.functionaljava.org/javadoc/4.0/fj/data/hlist/HList.html</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 6, 2016 at 7:58 AM, Mike Houghton <span dir="ltr"><<a href="mailto:mike_k_houghton@yahoo.co.uk" target="_blank">mike_k_houghton@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the quick reply!<br>
<br>
No, that wouldn’t work as that would tie a tuple to Int, Double,String for all tuples.<br>
<br>
(1,1,2,3,”string”, 4.5, “string”, 1) is also valid tuple<br>
<br>
In Java I would use<br>
List<Object> so any number of (non-primitives) can be used.<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Mike<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> On 5 Feb 2016, at 21:43, Imants Cekusins <<a href="mailto:imantc@gmail.com">imantc@gmail.com</a>> wrote:<br>
><br>
>> T = (1, ”A string”, 3.4) i.e. an int, string and double.<br>
><br>
> would this suit:<br>
><br>
> data Object = Int' Int | Double' Double | String' String<br>
> type T = [Object]<br>
><br>
> ?<br>
> _______________________________________________<br>
> Beginners mailing list<br>
> <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>