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
there are several functions in protocols in loom.graph defined like:
(successors [g] [g node]
"Return direct successors of node, or (partial successors g)")
given that all implementations must include the partial support, it doesn't belong behind the dispatch of a protocol, it is a constant, so a better implementation would be:
;; ... some protocol def
(-successors [g node]
"Return direct successors of node")
;;
(defnsuccessors
([g]
(partial successors g))
([g node]
(-successors g node)))
The text was updated successfully, but these errors were encountered:
there are several functions in protocols in loom.graph defined like:
given that all implementations must include the partial support, it doesn't belong behind the dispatch of a protocol, it is a constant, so a better implementation would be:
The text was updated successfully, but these errors were encountered: