You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If pair? x is true, then x is certainly not a keyword or a symbol, so the second clause is automatically true, obviating the need for the function. Should the second clause be replaced with (not (some #(or (keyword? %) (= '& %)) x)), or perhaps (not (or (some keyword? x) (= '& (first x)))) if preferred for your intent?
The text was updated successfully, but these errors were encountered:
It appears to me that the second clause in the and should check the first element of x. The only two-element destructuring vectors I currently am aware of are:
(let [[& foo] (range10)
[:as bar] (range5)])
imrekoszo
added a commit
to imrekoszo/xforms
that referenced
this issue
Jul 31, 2022
The definition of
destructuring-pair?
looks like it is missing something in the second clause:[Lines 30-32 in current version.]
If
pair? x
is true, thenx
is certainly not a keyword or a symbol, so the second clause is automatically true, obviating the need for the function. Should the second clause be replaced with(not (some #(or (keyword? %) (= '& %)) x))
, or perhaps(not (or (some keyword? x) (= '& (first x))))
if preferred for your intent?The text was updated successfully, but these errors were encountered: