Skip to content

Instantly share code, notes, and snippets.

@suissa
Created October 21, 2017 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suissa/27209966b8001d69e1be1b0219bbbb96 to your computer and use it in GitHub Desktop.
Save suissa/27209966b8001d69e1be1b0219bbbb96 to your computer and use it in GitHub Desktop.
const fx1 = ( x ) => ( [ before, op ] ) => op( before, x )
const fx2 = ( x ) => ( [ before, op ] ) => op( before, ( x * x ) )
const fx3 = ( x ) => ( before ) => x * x * x
const fx1 = ( x ) => ( [ before, op ] ) => op( before, x )
const fx2 = ( x ) => ( [ before, op ] ) => op( before, ( x * x ) )
const fx3 = ( x ) => ( [ before, op ] ) => x * x * x
const start = () => []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment