Talk:Hash from two arrays: Difference between revisions

→‎Intent: new section
(→‎Intent: new section)
Line 7:
 
:I replaced the one-liner with an if statement. --[[User:Short Circuit|Short Circuit]] 10:02, 25 January 2007 (EST)
 
== Intent ==
 
What exactly is the intent behind this task? It seems to specify the creation of a mapping of elements from one set to another, but what of the consequences of the hash requirement? Is the mapping supposed to be lossy, in the sense that not all values will have a key in the map in the end?
 
I think the task needs to be clarified, perhaps with an additional or optional requirement to "prove" the validity of the code by providing input data and matching against an output state. But I'm not sure what the relationship between input and output is supposed to be. --[[User:Short Circuit|Short Circuit]] 03:11, 8 May 2009 (UTC)