memfn won't bind `this`, unless I missed that enhancement :)

On Thursday, July 2, 2015, Joe R. Smith <[email protected]> wrote:

> You want `memfn`.
>
> (apply (memfn setAlign) n [1 2 3])
>
>
> > On Jul 2, 2015, at 6:27 AM, Sonny To <[email protected] <javascript:;>>
> wrote:
> >
> > I have setAlign method on a javascript object called n:
> >
> > (.setAlign n 1 2 3)
> >
> > I want to use apply to make the same call
> >
> > (apply (.setAlign n) [1 2 3])
> >
> > However that does work. Any suggestion on how to use apply in this way?
> The alternative is to write a macro.
> >
> > thanks,
> > Sonny
> >
> > --
> > Note that posts from new members are moderated - please be patient with
> your first post.
> > ---
> > You received this message because you are subscribed to the Google
> Groups "ClojureScript" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:;>.
> > To post to this group, send email to [email protected]
> <javascript:;>.
> > Visit this group at http://groups.google.com/group/clojurescript.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:;>.
> To post to this group, send email to [email protected]
> <javascript:;>.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to