json-api-schema
Version:
JSON Api Schema is a JSON dialect that can describe any Web Based API that uses JSON to exchange data.
29 lines (23 loc) • 553 B
text/coffeescript
class IteratorsIterator
constructor: () ->
= 0
= .length
next: ->
ite =
ite and ite.hasNext() and ite.next()
hasNext: ->
ite =
ite and ite.hasNext()
rewind: ->
= 0
current: ->
.current()
_currentIterator: ->
if <
if [].hasNext()
[]
else
++
module.exports = IteratorsIterator