From ee365c0b6d3f434db5289ef115a776e1cd14d857 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 20 Jul 2019 16:18:17 -0400 Subject: [PATCH] Clarify README language --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6118d6e..b9ba473 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ user> (logic/query db (or [address ?who [Cambridge [Ames Street] 3]] (address (Bitdiddle Ben) (Slumerville (Ridge Road) 10)))) ``` -The query language also support "rest-variables" in the same style as Clojure's function definitions or sequence destructuring via the `&` symbol. A query of the form `[?var1 & ?rest]` would match any assertion of length 2 or greater, matching the first item in the assertion to `?var1` and binding `?rest` to a list consisting of the remaining items in the assertion. The usefulness of this is best illustrated with an example: +The query language also support "rest-variables" in the same style as Clojure's function definitions or sequence destructuring via the `&` symbol. A query of the form `[?var1 & ?rest]` would match any assertion of length 2 or greater, binding `var1` to the first item in the assertion and binding `rest` to a list consisting of the remaining items in the assertion. The usefulness of this is best illustrated with an example: ``` clojure user> (logic/query db [address ?who [Cambridge & ?rest]])