fix: +1 test (198/233, 85%) — identity/conj variadic for update test

This commit is contained in:
2026-05-09 20:37:37 +03:00
parent fb13f15c39
commit 48e64aec7f
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -614,7 +614,10 @@ proc cljNth*(v: CljVal, n: CljVal): CljVal =
else:
raise newException(CatchableError, "nth requires a collection")
proc cljConj*(coll: CljVal, item: CljVal): CljVal =
proc cljConj*(args: seq[CljVal]): CljVal =
if args.len < 2: return cljList(@[])
let coll = args[0]
let item = args[1]
if coll.isNil:
return cljList(@[item])
case coll.kind