Skip to content

Instantly share code, notes, and snippets.

@missingfaktor
Created September 16, 2011 10:29
Show Gist options
  • Select an option

  • Save missingfaktor/1221790 to your computer and use it in GitHub Desktop.

Select an option

Save missingfaktor/1221790 to your computer and use it in GitHub Desktop.
Using applicative in Haskell
Prelude> import Control.Applicative
Prelude Control.Applicative> (*) <$> [1, 2, 3] <*> [40, 50, 60]
[40,50,60,80,100,120,120,150,180]
Prelude Control.Applicative>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment