docs: function nodup(eq) {
      let last
      if (arguments.length===0)
          eq = (a,b)=>a===b
      return function(v, cur){
          if ( !eq(last, cur) )
              v.push(cur)
          last=cur
          return v
      }
  }