meander

2021-08-30T13:51:20.035300Z

Is there any way to catch exception inside lhs?

2021-08-30T13:52:40.035500Z

idiotic example

(m/rewrite "foo"
  (try (m/pred neg? ?x)) ?x)

2021-08-30T14:05:51.035800Z

can be done this way, but maybe it can be done simpler?

(m/match "foo"
  (m/and ?x (m/guard (catching (zero? ?x)))) ?x
  _ false)

noprompt 2021-08-30T15:50:22.037Z

@huxley are you asking if m/pred can use try/`catch`?

2021-08-30T16:34:20.038200Z

Yes