Merge pull request #110 from dgr/tweak-composables

Update `only` and `except` single-arity parameter names.
This commit is contained in:
Anatoly 2019-08-20 23:09:53 -04:00 committed by GitHub
commit 10dbbaa40b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,8 +308,8 @@
set))
(defn only
([states]
(only (find-all-states) states))
([these]
(only (find-all-states) these))
([states these]
(intersection (mapset var-to-str these)
(mapset var-to-str states))))
@ -322,8 +322,8 @@
states))
(defn except
([states]
(except (find-all-states) states))
([these]
(except (find-all-states) these))
([states these]
(remove (mapset var-to-str these)
(mapset var-to-str states))))