Hello Daniel, Thus quoth Daniel Peebles at 13:58 on Tue, May 30 2017: > > My favorite interface for this type of operation is from Haskell's > Data.Map, in pseudo-Haskell notation: > > unionWithKey : (String -> a -> a -> a) -> Attrs a -> Atrs a -> Attrs a
Right, that's exactly the kind of function I was looking for :-) Now, I think that in Nix the main problem is that attribute sets are very often nested and that generic functions should be capable of handling this nesting. On the other hand, you usually don't care about nesting when using Data.Map. -- Sergiu
signature.asc
Description: PGP signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev