Made the 'descend' mode work more than one iteration deep.

This commit is contained in:
Elf M. Sternberg 2016-05-02 21:24:17 -07:00
parent 5d32d5288a
commit 514f9b0d37
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ _annotate = (ConsList) ->
# have to be intercepted first. The use of duck-typing here is
# frustrating.
item = if pairp(v[p]) then v[p] else
if (d and vectorp(v[p])) then vectorToList(v[p]) else v[p]
if (d and vectorp(v[p])) then vectorToList(v[p], 0, d) else v[p]
cons(item, vectorToList(v, p + 1))
list = (v...) ->