27 Sep
2001
27 Sep
'01
10:16 p.m.
Just as a matter of idle curiosity, is there a particular reason for tuples starting at element 1 (fst) whereas lists start at element 0? fst ('x', 'y') --> 'x' "xy" !! 1 --> 'y'
27 Sep
27 Sep
10:30 p.m.
On Thursday 27 September 2001 23:16, Tom Pledger wrote:
Just as a matter of idle curiosity, is there a particular reason for tuples starting at element 1 (fst) whereas lists start at element 0?
fst ('x', 'y') --> 'x' "xy" !! 1 --> 'y'
xs = [1,2,3,4] If I were to ask you which one is the first element of xs would you answer, 2 because xs!!1 == 2? :) J.A.
9101
Age (days ago)
9101
Last active (days ago)
1 comments
2 participants
participants (2)
-
Jorge Adriano -
Tom Pledger