meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
2020-09-13T16:18:42.243200Z

Hi, quick question, is it possible to use the value of a memory var twice? In something like:

(m/rewrite [:a :b]
  [!x  ...]
  (m/map-of ????))
;=> {:a :a :b :b}

jimmy 2020-09-13T16:20:07.243800Z

You can make two memory variables using and. https://github.com/noprompt/meander/blob/epsilon/doc/cookbook.md#use-the-same-value-from-a-memory-variable-twice

2020-09-13T16:26:31.244100Z

@jimmy Thanks! I thoght about that trick and must have screwed it up when I tried...

🙂 1
2020-09-13T16:32:15.244400Z

as an aside I read your post about rewriting meander with meander. Pretty cool stuff!

jimmy 2020-09-13T16:38:00.244600Z

Glad you liked it :)