"John D. Hume" <[email protected]> writes:
> On Thu, May 2, 2013 at 8:33 AM, Phillip Lord
> <[email protected]>wrote:
>
>> Well, I guess I will code up a simple macro; in my current case, I can
>> infer the arglists anyway.
>>
>
> Once you do, be sure to weigh the complexity against:
>
> (defn my-partial-function [y] (my-function 10 y))
I'd thought about that. Most of my functions are actually increasing the
arity, and a few other bits of bobs in between. Another option would be
(defn my-partial-function [y]
((partial my-function 10) y))
which is functionally equivalent.
The reason for doing this is that I have 20 or 30 functions all of the
same form, and they currently have more boilerplate than I like.
Phil
--
--
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
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.