Changes between Initial Version and Version 1 of Ticket #3002


Ignore:
Timestamp:
Feb 5, 2009 5:07:54 PM (5 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3002

    • Property Difficulty changed from to Unknown
  • Ticket #3002 – Description

    initial v1  
    11The example given for unionWithKey uses rather odd names "new_value" and "old_value" for the values in the two maps.  Perhaps more appropriate names would be leftValue and rightValue.  This has been commented on in #haskell that where the values come from is not clear. 
    2  
     2{{{ 
    33let f key new_value old_value = (show key) ++ ":" ++ new_value ++ "|" ++ old_value 
    44unionWithKey f (fromList [(5, "a"), (3, "b")]) (fromList [(5, "A"), (7, "C")]) == fromList [(3, "b"), (5, "5:a|A"), (7, "C")] 
     5}}}