Essentially, they’re not different. Lists are actually just tupples of tupples.
[1,2,3] is really {1, { 2, {3, nil}}}
Most, of not all FP languages represent lists this way, usually with a bit of syntactic sugar. This all comes from λ calculus, which is worthwhile to learn if you’re into FP.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Essentially, they’re not different. Lists are actually just tupples of tupples.
[1,2,3]
is really{1, { 2, {3, nil}}}
Most, of not all FP languages represent lists this way, usually with a bit of syntactic sugar. This all comes from λ calculus, which is worthwhile to learn if you’re into FP.