meander

geoff 2022-01-08T02:54:36.000500Z

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

geoff 2022-01-08T02:56:05.001300Z

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

geoff 2022-01-08T02:56:38.002100Z

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

geoff 2022-01-08T02:58:43.002500Z

nevermind, looks like defsyntax does exactly what I wanted

geoff 2022-01-08T02:58:49.002800Z

thanks for working on this library

Jimmy Miller 2022-01-08T02:59:27.003400Z

m/app lets you call functions

🙌 1
Jimmy Miller 2022-01-08T03:00:11.003600Z

Or I guess in your case r/app

geoff 2022-01-08T03:24:54.003800Z

how would I apply that in the above case?

geoff 2022-01-08T03:25:12.004Z

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

geoff 2022-01-08T03:25:14.004200Z

?

geoff 2022-01-08T03:29:58.004400Z

ah got it, thanks