
2 Apr
2018
2 Apr
'18
7:51 p.m.
On 3 April 2018 at 09:24, Olivier S.
So it seems using Data.IntMap would be a good compromise?
IntMap only works if `node ~ Int`; otherwise we lose generality. My preferences are: * A typeclass (unfortunately Foldable for a Map is only on the values, not on the Key; unless you provide a wrapper?) * Lists (despite the issues you've pointed out, people can always convert Maps, IntMaps, etc. to lists to convert those values to a Graph) * Map -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com