There's some plans to allow more flexible overloaded list syntax that, once done, would allow list style notation for static sized tuples/lists. But it's probably not gonna be mature till ghc 7.14 at the current rate. Hopefully 7.12, but more likely 7.14 On Monday, June 1, 2015, KC <kc1956@gmail.com> wrote:
I'm a part time tutor even though I don't look Elizabethan
I was trying to lower the learning curve for students
Maybe I'll point them to http://dev.stephendiehl.com/hask/ And Data.Vector
-- --
Sent from an expensive device which will be obsolete in a few months! :D
Casey
On Jun 1, 2015 1:35 PM, "Brandon Allbery" <allbery.b@gmail.com <javascript:_e(%7B%7D,'cvml','allbery.b@gmail.com');>> wrote:
On Mon, Jun 1, 2015 at 4:29 PM, KC <kc1956@gmail.com <javascript:_e(%7B%7D,'cvml','kc1956@gmail.com');>> wrote:
Then a tuple might work better as input to a function to index into an array
e.g. myArray (5)
Aside from 1-tuples not being a thing? (That's the same as (myArray 5).)
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com <javascript:_e(%7B%7D,'cvml','allbery.b@gmail.com');> ballbery@sinenomine.net <javascript:_e(%7B%7D,'cvml','ballbery@sinenomine.net');> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net