I programmed in TypeScript like in Haskell (Lazy Evaluation)

Опубликовано: 03 Февраль 2026
на канале: Tsoding
58,399
1.5k

Hey!

In today's video I tried to explain Lazy Evaluation using TypeScript for all of the examples instead of Haskell. TypeScript is a superset of JavaScript which adds static typing on top of it. The combination of functional background of JavaScript and the strong static typing makes TypeScript a perfect environment for exploration of Haskell concepts but with a more familiar for mainstream developers programming language.

Hope you will find this explanation approach useful!

Links:
Source Code: https://github.com/tsoding/lazy
Deno: https://github.com/denoland/deno/rele...
The Computerphile Video:    • Infinite Data Structures: To Infinity & Be...  
Similar Video of Mine:    • Haskell for JavaScript programmers  
Patreon:   / tsoding  
Twitch:   / tsoding