Talk:Search a list: Difference between revisions

no edit summary
(Task overspecified?)
 
No edit summary
Line 1:
Is it really essential that the sequence of strings is in an array? For some languages, other data structures may be more suitable. Indeed, the Common Lisp example uses a list instead of an array, and therefore doesn't conform to the current task description. Also note that the task's title speaks of a list, but the task description speaks of an array, which is sort of a contradiction. I think it would be better to allow the examples for each language to use any data structure for the sequence, as long as it's directly provided by the language or standard library. --[[User:Ce|Ce]] 13:33, 26 November 2008 (UTC)
:I don't think the operative word is "list", but "index" instead. As long as the collection innately supports access at an index it should be fine.--[[User:Mwn3d|Mwn3d]] 14:24, 26 November 2008 (UTC)
Anonymous user