meander 2022-01-08

Hi, is it possible to call a function in r/rewrite?

(r/rewrite (foo & ?x) (apply fn-to-be-called ?x))

where the result of fn-to-be-called will be substituted in, rather than just the list of symbols (apply fn-to-be-called ?x) with the ?x substituted

nevermind, looks like defsyntax does exactly what I wanted

thanks for working on this library

m/app lets you call functions

🙌 1

Or I guess in your case r/app

how would I apply that in the above case?

(r/rewrite (foo & ?x) (m/app fn-to-be-called ?x))

ah got it, thanks