Fixed with the linter, and updated the package.json file to reflect that. You won't believe how easy it was!

This commit is contained in:
Elf M. Sternberg 2015-05-22 22:49:02 -07:00
parent 5c8939a7d6
commit 46f6600a55
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@
},
"devDependencies": {
"chai": "^2.0.0",
"mocha": "^2.1.0"
"mocha": "^2.1.0",
"coffeelint": "1.9.*"
},
"scripts": {
"test": "make test",

View File

@ -27,7 +27,8 @@ vectorToList = (v, p) ->
# Annoying, but since lists are represented as nested arrays, they
# have to be intercepted first. The use of duck-typing here is
# frustrating.
item = if pairp(v[p]) then v[p] else if vectorp(v[p]) then vectorToList(v[p]) else v[p]
item = if pairp(v[p]) then v[p] else
if vectorp(v[p]) then vectorToList(v[p]) else v[p]
cons(item, vectorToList(v, p + 1))
list = (v...) ->