Zulip Chat Archive
Stream: general
Topic: monadic version of `expr.replace`
Scott Morrison (Mar 13 2021 at 03:27):
Has anyone implemented a monadic version of expr.replace
? I don't see one yet.
Mario Carneiro (Mar 13 2021 at 04:26):
There is docs#expr.traverse, although it doesn't give you the binding depth like expr.replace
Mario Carneiro (Mar 13 2021 at 04:28):
you also have to call it recursively if you want to traverse the whole term
Scott Morrison (Mar 13 2021 at 06:31):
Last updated: Dec 20 2023 at 11:08 UTC