On May 30, 1:19 pm, Daniel Lyons <[email protected]> wrote: > You can't have both partial application and variable arity functions.
Uh, yeah you can. Haskell can have variadic functions, like Text.Printf.printf, and with some explicit type signatures you can still partially apply it. import Text.Printf -- Here, I've partially applied printf with just one argument; another is needed to complete the formatting. aoeu :: (PrintfArg a, PrintfType r) => a -> r aoeu = printf "Hello %s" -- And here, I've completed application by supplying the needed argument. asdf :: PrintfType r => r asdf = aoeu "World!\n" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
