[LOGIC-69] prep does not properly recurse terms Created: 19/Nov/12 Updated: 21/Nov/12 Resolved: 21/Nov/12 |
|
| Status: | Resolved |
| Project: | core.logic |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | David Nolen | Assignee: | David Nolen |
| Resolution: | Completed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Patch: | Code and Test |
| Description |
(prep {:a {:b ?c} :d ?d})
?c is not walked according to Kevin Lynagh. This should also handle complex map keys. |
| Comments |
| Comment by Kevin Lynagh [ 21/Nov/12 12:09 AM ] |
|
Also available here: https://github.com/lynaghk/core.logic/tree/walk-recursive |
| Comment by Kevin Lynagh [ 21/Nov/12 12:13 AM ] |
|
This patch adds prewalk recursion to IWalkTerm for map/record keys and values, seqs, and vectors. |
| Comment by Kevin Lynagh [ 21/Nov/12 12:17 AM ] |
|
(Patch updated to walk map keys. I couldn't figure out how to remove old patch in JIRA.) |
| Comment by David Nolen [ 21/Nov/12 8:57 AM ] |
|
fixed, http://github.com/clojure/core.logic/commit/bd65104ec3fda79790655d4be8a9be436f2c0d54 |