Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 267 Bytes

lib.md

File metadata and controls

18 lines (13 loc) · 267 Bytes

Custom lib

{ lib }: with lib;
{

Generate an attr set from a list

concatMapToAttrs :: (a -> AttrSet b) -> [a] -> AttrSet b

  concatMapToAttrs = f: flip pipe [ (map f) (foldl' mergeAttrs { }) ];
}