Skip to content

A set of koans for diving into the world of functional programming in Javascript

Notifications You must be signed in to change notification settings

MrRacoon/js-fp-koans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-fp-koans

This repository contains a set of koans for diving into the world of functional programming in Javascript.

The aim is to impart principles from ramda and fantasy-land using a hands on approach. After this lesson, you should be familiar with most of the basic principles, (and possibly the more advanced ones).

Usage

First get the koans.

git clone https://github.com/MrRacoon/js-fp-koans.git
cd js-fp-koans

It's suggested to start from the beginning and working your way through the koans in order.

Open the koan, and read through it, and replace every instance of REPLACE with the appropriate value. Be sure to also remove the x from the beginning of each describe block.

You should check your progress as you go. Every file can be tested individually by running the corresponding test:# npm script.

For example, if you are working on 1-booleans you would run:

npm run test:1

Good luck, have fun. Lemme know if a problem is lame, or something feels missing.

Types

  1. booleans
  2. strings
  3. numbers
  4. functions

Function types

  1. predicates
  2. higher order functions

Structures

  1. lists
  2. objects

About

A set of koans for diving into the world of functional programming in Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published