Skip to content

Commit

Permalink
.tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
inconvergent committed Feb 26, 2024
1 parent b632d6a commit ef90d62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qry.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
`(loop with ,acc = ,init
with ,par = (vec! ,(gk conf :dat))
for ,itr across ,par for ,i from 0
do (∈ (,par ,i ,itr)
do (∈ (,par ,i ,itr ,i)
(setf ,acc ,(funcall rec (dat/new conf itr) expr)))
finally (return ,acc))))
(case (length d) (0 (error "*fld: missing args."))
Expand Down
4 changes: 2 additions & 2 deletions test/test-lqn-2.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@

(is (lqn:ldnout (lqn:qry (lqn:new$ :a 1 :b 2 :c 3) #(1+)))
'((:A . 2) (:B . 3) (:C . 4)) :test #'equalp)
(is (lqn:ldnout (lqn:qry (lqn:new$ :a 1 :b 2 :c 3) #((lqn:str! (key) _))))
'((:A . "a1") (:B . "b2") (:C . "c3")) :test #'equalp)
(is (lqn:ldnout (lqn:qry (lqn:new$ :a 1 :b 2 :c 3) #((str! (key) (cnt) _))))
'((:A . "a01") (:B . "b12") (:C . "c23")) :test #'equalp)

(is (lqn:qry "aaayyy x abc x def x uuu x sss x auiuu x aaaaa"
(splt _ :x) (*map (?xpr :a :-@b sup sdwn)))
Expand Down

0 comments on commit ef90d62

Please sign in to comment.