code: function toArray(foldable) {
      return Array.isArray (foldable) ?
             foldable :
             Z.reduce (function(xs, x) { xs.push (x); return xs; },
                       [],
                       foldable);
    }
docs: toArray :: Foldable f => f a -> Array a