 
 # -- Setting the number base (maximal digit value - 1) and its square root
 
-rdump = (s) -> "#{if s then s.toArray().join('|') else '[]'}"
+rdump = (s) -> "#{if s then s.into([]).join('|') else '[]'}"
 dump = (s) -> rdump s?.reverse()
 
 if quicktest


  constructor: (n = 0) ->
    make_digits = (m) ->
      if m then new Stream(m % BASE, -> make_digits(Math.floor m / BASE))

    [m, @sign__] = if n < 0 then [-n, -1] else [n, 1]
    @digits__ = make_digits m

  create = (digits, sign) ->
    n = new LongInt()
    n.digits__ = digits
    n.sign__ = sign
    n


  require.paths.unshift __dirname
  { recur, resolve } = require 'functional'
  { Sequence }       = require 'sequence'
else
  { recur, resolve, Sequence } = this.pazy

# -- Call with '--test' for some quick-and-dirty testing

