Skip to content

Instantly share code, notes, and snippets.

@robertberry-zz
Created March 21, 2014 17:07
Show Gist options
  • Save robertberry-zz/9690858 to your computer and use it in GitHub Desktop.
Save robertberry-zz/9690858 to your computer and use it in GitHub Desktop.
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