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