Anonymous user
Doubly-linked list/Definition: Difference between revisions
m
→{{header|Clojure}}
Line 426:
Object
(equals [this x]
(
(= m (.m ^DoubleList x))))
(hashCode [this] (hash (or this ())))
clojure.lang.Sequential
Line 439:
(empty [_] (DoubleList. (empty m) nil nil))
(equiv [this x]
(
(= (seq x) (seq this))))
(cons [this x] (.add-tail this x))
PDoubleList
|