Merge branch 'master' into traverse
This commit is contained in:
commit
9ac9771a0e
1 changed files with 2 additions and 1 deletions
|
|
@ -544,7 +544,8 @@
|
|||
(assoc v 0 (afn val))
|
||||
))
|
||||
(update-last [v afn]
|
||||
(let [c (vec-count v)]
|
||||
;; type-hinting vec-count to ^int caused weird errors with case
|
||||
(let [c (int (vec-count v))]
|
||||
(case c
|
||||
1 (let [[e] v] [(afn e)])
|
||||
2 (let [[e1 e2] v] [e1 (afn e2)])
|
||||
|
|
|
|||
Loading…
Reference in a new issue