Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20250109 関数型

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for saka saka
December 24, 2025
3

20250109 関数型

Avatar for saka

saka

December 24, 2025

Transcript

  1. F#: let add1 x = x + 1 // int

    -> int TS: const add1 = (x) => { return x + 1; }; // type add1 = (x: number) => number;
  2. // areEqual : 'a -> 'a -> bool let areEqual

    x y = (x = y) const areEqual = <T>(x: T, y: T) => x === y;