Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kutyel/fp-typescript-workshop

🪐 Functional Programming in TypeScript!
https://github.com/kutyel/fp-typescript-workshop

Last synced: 3 months ago
JSON representation

🪐 Functional Programming in TypeScript!

Awesome Lists containing this project

README

        


lambda

# Functional Programming in TypeScript Workshop

[![CI Build](https://github.com/kutyel/fp-typescript-workshop/actions/workflows/main.yml/badge.svg)](https://github.com/kutyel/fp-typescript-workshop/actions/workflows/main.yml)

⚡️ Let's learn some functional programming together!

We will be using the amazing [Effect.ts](https://effect.website/) library because it is designed from the ground up to work nicely with TypeScript! 😎

## Requirements

Install [Bun](https://bun.sh/docs/installation)!

> This project uses Bun instead of Node as an experiment and to make things crazy fast! 🚄

If you are using homebrew:

```sh
$ brew tap oven-sh/bun # for macOS and Linux
$ brew install bun
```

## Run the tests and solve the exercises!

There are 3 rounds of exercises: `functors`, `applicatives` and `monads`.

My recommendation is that you run only the specific test file in watch mode and solve the exercises in that order before moving to the next challenge. 😉

```sh
$ npm t -- functors --watch
$ npm t -- applicatives --watch
$ npm t -- monads --watch
```

Happy coding! ⚡️