hunk.code_window:           mapped[0] = createRoot(disposer => {
               disposers[0] = disposer;
               return options.fallback!();
             });
             len = 1;
           }
         }
         // fast path for new create
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:           }, ctx);
  
hunk.file_path: packages/solid/src/reactive/array.ts
hunk.type: replace
file: import { createRoot, createSignal, createMemo } from "solid-js";
  import { transform } from "../src";
  
  describe("Transform operator", () => {
    const multiply = (m: number) => (s: () => number) => () => s() * m;
    test("no ops", () => {
      createRoot(() => {
        const [s, set] = createSignal(0),
          r = createMemo(transform(s));
        expect(r()).toBe(0);
        set(2);
        expect(r()).toBe(2);
      });
    });
  
    test("single op", () => {
      createRoot(() => {
        const [s, set] = createSignal(1),
          r = createMemo(transform(s, multiply(2)));
        expect(r()).toBe(2);
        set(2);
        expect(r()).toBe(4);
      });
    });
  
    test("multiple ops", () => {
      createRoot(() => {
        const [s, set] = createSignal(1),
          r = createMemo(transform(s, multiply(2), multiply(3)));
        expect(r()).toBe(6);
        set(2);
        expect(r()).toBe(12);
      });
    });
  });
  