Talk:Apply a callback to an array: Difference between revisions

m
(array vs list)
Line 6:
 
I was just looking at the [[Haskell]] solution for this task, and it uses a list instead of an array. Of course, Haskell has built in arrays, lists are just more natural, as they are in all functional languages. This seems deceptive to me. I know lists are more natural than arrays in Haskell, but it seems to me this page should contain the array example, and an alternate task should be made for lists. Just as Haskell will seem more complicated on the array examples, imperative languages like [[C]] will have to use a complicated list structure for the list examples. It doesn't seem right to neglect this distinction. Thoughts? --[[User:Zarvok | Zarvok]] | [[User_talk:Zarvok|Talk]] 22:45, 23 January 2007 (EST)
 
:I don't know any functional languages. What's the difference between a list and an array? --[[User:Short Circuit|Short Circuit]] 23:27, 23 January 2007 (EST)