Skip to content

Instantly share code, notes, and snippets.

@edsko
Created November 3, 2017 09:35
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 edsko/cc4abdb8fcdd4f965bff4e180a8c77fb to your computer and use it in GitHub Desktop.
Save edsko/cc4abdb8fcdd4f965bff4e180a8c77fb to your computer and use it in GitHub Desktop.
data Strategy = Concat
(+++) :: [a] -> [a] -> Strategy -> [a]
(+++) xs ys Concat = xs ++ ys
(.@) :: (Strategy -> a) -> Strategy -> a
(.@) = ($)
test :: [Int]
test = [1] +++ [2] .@ Concat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment