Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/Cont.idr

Last active Nov 30, 2017
Embed
What would you like to do?
-- Type alias in Idris (a function on types)
Cont : Type -> Type -> Type
Cont r a = (a -> r) -> r
parensCps : String -> Cont r String
parensCps s cont = cont ("(" ++ s ++ ")")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.