hunk.code_window:   let items: (T | typeof FALLBACK)[] = [],
       mapped: U[] = [],
       disposers: (() => void)[] = [],
       signals: ((v: T) => T)[] = [],
       len = 0,
       i: number;
     onCleanup(() => {
       for (let i = 0, length = disposers.length; i < length; i++) disposers[i]();
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     i: number,
       ctx = Owner!;
  
hunk.file_path: packages/solid/src/reactive/array.ts
hunk.type: replace
file: import { untrack } from "solid-js";
  
  export function map<T, U>(fn: (v: T) => U): (v: () => T) => () => U;
  export function map<T, U>(input: () => T, fn: (v: T) => U): () => U;
  export function map<T, U>(input: any, fn?: (v: T) => U): any {
    if (arguments.length === 1) {
      fn = input;
      return map;
    }
    return map(input);
  
    function map(input: () => T) {
      return () => {
        const value = input();
        return untrack(() => fn!(value));
      };
    }
  }
  