Created
March 21, 2014 17:07
-
-
Save robertberry-zz/9690858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val collectionGroups = collections.map(Group.fromCollection) | |
val transforms = for { | |
_ <- (Group.showHeader.partial compose listHeadPLens[Group]) %= false | |
_ <- listTailPLens[Group] %= (_.map(Group.required.set(_, false))) | |
} yield () | |
val groups = transforms(collectionGroups)._1 ++ premiumGroups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment