Skip to content

Instantly share code, notes, and snippets.

@gakuzzzz
Last active August 29, 2015 14:04
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 gakuzzzz/7766a6823cd2b101936d to your computer and use it in GitHub Desktop.
Save gakuzzzz/7766a6823cd2b101936d to your computer and use it in GitHub Desktop.
ApplicativeStype

ApplicativeBuilder

      (a |@| b |@| c |@| d apply f1) 
  |@| (e |@| f |@| g |@| h apply f2)
  apply f3

Haskell like Applicative Style

  f3 _ 
    `<S>` (f1 _ `<S>` a <<*>> b <<*>> c <<*>> d)
    <<*>> (f2 _ `<S>` e <<*>> f <<*>> g <<*>> h)
  f3 _ 
    <!> (f1 _ <!> a <.> b <.> c <.> d)
    <.> (f2 _ <!> e <.> f <.> g <.> h)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment