Skip to content

Instantly share code, notes, and snippets.

@hesher
Last active June 7, 2017 08:08
Show Gist options
  • Save hesher/920766404fd1517890e0ab2b98bd1cef to your computer and use it in GitHub Desktop.
Save hesher/920766404fd1517890e0ab2b98bd1cef to your computer and use it in GitHub Desktop.
const withSiteName = set(lensProp('name'));
const withDomain = set(lensProp('domain'));
const site = pipe(withSiteName('a Site'), withDomain('domain'));
site({}); // site is the function that returns the value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment