From: David C. <dw...@dw...> - 2005-10-28 20:23:16
|
Hey all, Is there a module which converts conveniently between NSDictionary and a Data.Map object? I realize that there are some differences between the types of objects which can be stored in the two mappings, but perhaps there would be a: mapFromDict :: NSDictionary a -> Map Id Id or a specialized version in the case that the keys and values are a particular type (say NSStrings) mapFromDictStrings :: NSDictionary () -> Map String String This seems like it could be useful, if not necessarily general purpose, and it may be that the two systems are a bit too schizophrenic to allow such a mapping to take place, but it'd work for me! Any thoughts on this idea? If something like this doesn't exist, I'd be glad to release my solution when I find it. Regards, David Christensen |