Created
July 26, 2018 15:22
-
-
Save JesterXL/2c74030258098f87beab7b2b2f70b0b4 to your computer and use it in GitHub Desktop.
This file contains 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
const getName = get('name') | |
const setName = set('name') | |
const getFixedName = flow([getName, startCase]) | |
const nameAndPerson = [{f: getFixedName}, {f: identity}] | |
const callF = invoker(1, 'f') | |
const flipMap = curry(rearg([1, 0], map)) | |
const mapNameAndPerson = flipMap(nameAndPerson) | |
const getFixedNameAndPerson = flow([callF, mapNameAndPerson]) | |
const setNameWithPersonNameAndPerson = apply(setName) | |
const mapFormatNames = flow([getFixedNameAndPerson, setNameWithPersonNameAndPerson]) | |
const formatNames = map(mapFormatNames) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment