We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
linked-array-list-remove-value
1 parent 53b83c3 commit 980bfe8Copy full SHA for 980bfe8
2 files changed
src/xitdb/linked_list.clj
@@ -7,8 +7,8 @@
7
[io.github.radarroark.xitdb ReadCursor ReadLinkedArrayList WriteCursor WriteLinkedArrayList]))
8
9
(defn array-seq
10
- [^ReadLinkedArrayList rlal]
11
"The cursors used must implement the IReadFromCursor protocol."
+ [^ReadLinkedArrayList rlal]
12
(operations/linked-array-seq rlal #(common/-read-from-cursor %)))
13
14
(deftype XITDBLinkedArrayList [^ReadLinkedArrayList rlal]
src/xitdb/util/operations.clj
@@ -91,8 +91,7 @@
91
(defn linked-array-list-remove-value!
92
"Removes a value at position pos in a WriteLinkedArrayList."
93
[^WriteLinkedArrayList wlal pos]
94
- (let [cursor (-> wlal .cursor)]
95
- (.remove wlal pos))
+ (.remove wlal pos)
96
wlal)
97
98
(defn linked-array-list-pop!
0 commit comments