code: function replace_at(seq, index, sub) { var result
          result = copy(seq)
          result[index] = sub
          return result
      }
docs: /// Function replace_at //////////////////////////////////////////////////  (seq:Sequence, index:Num, sub) ↦ Array  Replaces the item at index by `sub`.