meander icon indicating copy to clipboard operation
meander copied to clipboard

meander.interpreter.epsilon/finder doesn't work with multiple clauses

Open prepor opened this issue 3 years ago • 1 comments

Hi.

[query f & more-clauses] args version of finder calls finder-from with a collection of pairs while finder-from expects clauses list and partition it by itself.

And there is no single test for meander.interpreter.epsilon/finder with multiple clauses.

The fix is simple: Instead of (finder-from (cons [query f] (partition 2 more-clauses))) we can (finder-from (cons query (cons f more-clauses)))

I can prepare a PR if it would help

prepor avatar Feb 16 '22 18:02 prepor

I can prepare a PR if it would help

Yes. Please!

noprompt avatar Feb 28 '22 22:02 noprompt