These are chat archives for non/algebra

6th
Feb 2015
Erik Osheim
@non
Feb 06 2015 22:43
hey folks -- i have a really hard time imagining it being useful, but would folks like to have Order[Map[K, V]] instances?
i feel like you'd have to union the keys, sort the union, then iterate -- it sounds really painful.
otoh, it could potentially make someone's day to have it. maybe leave it out for now and reconsider later?
i guess a slightly more efficient algo is just to compare all keys/values on both sides (like eq) but hold onto "lowest" mismatched key and direction
maybe i'll do it, why not.