Skip to content

Commit e69f8fe

Browse files
committed
get the value from the list with get
1 parent 8d9b040 commit e69f8fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/practitest_firecracker/query_dsl.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
(string/split (second args) complied))
7979
(return-error "Syntax error: 'split' must have two arguments" query))
8080
'get (if (= 2 (count args))
81-
(take 1 (drop (- (parse-int (first args)) 1) (last args)))
81+
(first (take 1 (drop (- (parse-int (first args)) 1) (last args))))
8282
(return-error "Syntax error: 'get' must have two arguments" query))
8383
'trim (if (= 1 (count args))
8484
(if (string? (first args))

0 commit comments

Comments
 (0)