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
Given a (speced/defn [{::foo/keys [bar}]), we could observe that the ::foo/bar spec may exist, and add it to the precondition accordingly, against the bar variable.
Note that destructuring may be arbitrarily nested, which calls for a careful implementation.
Remember that destructuring has two forms (vector + associative) and that associative destructuring may be applied upon arbitrary values (e.g. (let [{valid-msgs true invalid-msgs false} (group-by some? msgs)] ..)
The text was updated successfully, but these errors were encountered:
Given a
(speced/defn [{::foo/keys [bar}])
, we could observe that the::foo/bar
spec may exist, and add it to the precondition accordingly, against thebar
variable.Note that destructuring may be arbitrarily nested, which calls for a careful implementation.
(let [{valid-msgs true invalid-msgs false} (group-by some? msgs)] ..
)The text was updated successfully, but these errors were encountered: