I was suggested to use something similar to Scheme's 'apply', but I didn't find a similar construct in jolt... Is there?
Thanks, Hans ---------- Forwarded Message ---------- Subject: Re: [fonc] unquote-splice outside a backquote Date: Tuesday 04 September 2007 22:43 From: "Mark Friedman" <[EMAIL PROTECTED]> To: SainTiss <[EMAIL PROTECTED]> If jolt is like Scheme in this regard then there should be an 'apply' function which takes a function and a list of args and returns the result of applying the function to the arguments. I.e., your function would look like: (define f (lambda (b) (apply myFunction b))) -Mark On Sep 4, 2007 6:09 AM, SainTiss <[EMAIL PROTECTED]> wrote: > Hmm, I posted a slightly too easy version of my actual problem... > > The version I posted can be solved through a (syntax) construct, as it has > access to 'x' and 'y', and can thus rewrite the construct so that 'x' and > 'y' > are spliced. > > However, I'm encountering the case where: > > (let ((q '(x y)) f q) > > should still result in: > > (myFunction x y) > > Now, any (syntax) construct would have access to 'q', but there doesn't > seem > to be a way to get from there to '(x y)... > > I hope I've described this in a sufficiently clear way... > > Thanks, > > Hans > > On Tuesday 04 September 2007 13:27, SainTiss wrote: > > Hi all, > > > > is there a way to do something like this? : > > (define f (lambda (b) (myFunction ,@b))) > > > > i.e. b is expected to be a list and I want to splice that list when > > calling > > > myFunction, but I'm not in a backquoted context. > > > > e.g. I would like (f '(x y)) to result in (myFunction x y) > > > > Thanks, > > > > Hans > > -- > A liberal is a person whose interests aren't at stake at the moment > -- Willis Player > > Hans Schippers > Research Assistant of the Research Foundation - Flanders (FWO - > Vlaanderen) > http://www.win.ua.ac.be/~hschipp/ <http://www.win.ua.ac.be/%7Ehschipp/> > Formal Techniques in Software Engineering (FoTS) > University of Antwerp > Middelheimlaan 1 > 2020 Antwerpen - Belgium > Phone: +32 3 265 38 71 > Fax: +32 3 265 37 77 > _______________________________________________ > fonc mailing list > [email protected] > http://vpri.org/mailman/listinfo/fonc ------------------------------------------------------- -- A liberal is a person whose interests aren't at stake at the moment -- Willis Player Hans Schippers Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen) http://www.win.ua.ac.be/~hschipp/ Formal Techniques in Software Engineering (FoTS) University of Antwerp Middelheimlaan 1 2020 Antwerpen - Belgium Phone: +32 3 265 38 71 Fax: +32 3 265 37 77 _______________________________________________ fonc mailing list [email protected] http://vpri.org/mailman/listinfo/fonc
