We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17caf33 commit 9603db4Copy full SHA for 9603db4
src/tech/v3/dataset/string_table.clj
@@ -7,6 +7,7 @@
7
[tech.v3.datatype.errors :as errors]
8
[ham-fisted.api :as hamf]
9
[ham-fisted.reduce :as hamf-rf]
10
+ [ham-fisted.lazy-noncaching :as lznc]
11
[clojure.tools.logging :as log])
12
(:import [java.util List HashMap Map ArrayList]
13
[java.util.function Function]
@@ -222,5 +223,11 @@
222
223
(-> (->string-table str-t)
224
(.int->str)))
225
226
+(defn merge-string-tables
227
+ "Return new string table with strings from lhs and rhs. Neither input is changed."
228
+ [^StringTable lhs ^StringTable rhs]
229
+ (string-table-from-strings (lznc/concat (.-int->str lhs)
230
+ (.-int->str rhs))))
231
+
232
233
0 commit comments