Functional Programming

186 resources5 categoriesView Original

Functional Languages that Compile to JavaScript(19 items)

C

ClojureScript

– Compiles Clojure, a hosted Lisp with immutable persistent data structures, to JavaScript.

Functional Languages that Compile to JavaScript
E

ElixirScript

– Compiles a subset of Elixir, a dynamic, functional language designed for building scalable and maintainable applications, to JavaScript.

Functional Languages that Compile to JavaScript
E

Elm

– A type-safe functional programming language for declaratively creating web browser-based graphical user interfaces. Implemented in Haskell.

Functional Languages that Compile to JavaScript
F

Fable

Compiles F# to readable JavaScript.

Functional Languages that Compile to JavaScript
G

GHCJS

– Haskell to JavaScript compiler, based on GHC.

Functional Languages that Compile to JavaScript
G

Gleam

Gleam is a typed, functional language that compiles to Erlang and JavaScript.

Functional Languages that Compile to JavaScript
I

Idris

– A general purpose pure functional programming language with dependent types.

Functional Languages that Compile to JavaScript
I

ion

no BS JS

Functional Languages that Compile to JavaScript
J

Js\_of\_ocaml

– Compiles OCaml bytecode to JavaScript, making it possible to run OCaml programs in the browser.

Functional Languages that Compile to JavaScript
K

Koka

– Koka is a function-oriented programming language that seperates pure values from side-effecting computations with a familiar JavaScript like syntax.

Functional Languages that Compile to JavaScript
L

LiveScript

– LiveScript has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate.

Functional Languages that Compile to JavaScript
P

PureScript

– A small strongly typed programming language that compiles to JavaScript.

Functional Languages that Compile to JavaScript
Q

Quack

A multi-paradigm programming language with gradual and duck typing that targets PHP and JS.

Functional Languages that Compile to JavaScript
R

RacketScript

– RacketScript aims to leverage both JavaScript and Racket's ecosystem, and make interoperability between them clean and smooth.

Functional Languages that Compile to JavaScript
R

RamdaScript

A Lisp that compiles to opinionated JavaScript on top of RamdaJS

Functional Languages that Compile to JavaScript
R

Reason

– Reason is a new interface to OCaml, a highly expressive dialect of the ML language featuring type inference and static type checking.

Functional Languages that Compile to JavaScript
R

ReScript

– (previously known as Bucklescript) ReScript is a type-safe language that compiles to the highest quality of clean, readable and performant JavaScript code.

Functional Languages that Compile to JavaScript
S

Scala.js

– Compiles Scala to JavaScript.

Functional Languages that Compile to JavaScript
T

TypeScript

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

Functional Languages that Compile to JavaScript

Libraries(104 items)

1

1-liners

– Functional tools that couldn’t be simpler. A dead simple functional utility belt, hand-crafted with love and attention. -TS.

Libraries
1

101

– A modern and modular JavaScript utility library made to work well with vanilla JavaScript methods. -TS

Libraries
B

Baobab

– persistent and optionally immutable data tree with cursors.

Libraries
B

barely-functional

– A tiny (2.7kb) functional programming library using native ES5/6 operations. -TS.

Libraries
B

bluebird-promisell

A practical functional programming library for promises.

Libraries
C

claire

– A property-based testing library for clearly specifying code invariants and behaviour.

Libraries
C

collectable

– Super high-performance immutable data structures for modern JavaScript and TypeScript applications. +TS.

Libraries
C

compose-function

– Compose a new function from smaller functions.

Libraries
C

context-fp

Microscopic functional programming context aka dependency injection. +TS

Libraries
C

Creed

– Sophisticated and functionally-minded async with advanced features: coroutines, promises, ES2015 iterables, fantasy-land. -TS.

Libraries
C

crocks

– A collection of popular Algebraic Data Types with the main goal to curate and provide not only a common interface between each type, but also all of the helper functions needed to hit the ground running. -TS.

Libraries
C

curry

– Curry your functions using function bind syntax.

Libraries
D

daggy

– Library for creating tagged constructors.

Libraries
D

date-fp

– A functional utility library for working with JavaScript dates. All functions in date-fp are pure, autocurried and will not mutate the date objects they are applied to.

Libraries
D

DerivableJS

– Functional Reactive State for JavaScript and TypeScript. DerivableJS enables you to make elegant declarative statements about how your bits of state are related. +TS.

Libraries
D

Ditox.js

Powerful dependency injection container for building modular apps. +TS

Libraries
E

effect-ts

– A Fully-fledged functional effect system for typescript with a rich standard library. +TS

Libraries
F

Fantasy Land

– Not a library, but a specification of the Monad laws for libraries to follow.

Libraries
F

fantasy-birds

– Port of the Haskell package Data.Aviary.Birds. Everything for your combinatory needs.

Libraries
F

fantasy-combinators

– Common combinators.

Libraries
F

fantasy-lenses

– Composable, immutable getters and setters. (Profunctor lenses WIP)

Libraries
F

Ferrum

– Iterator library with support for objects as iterables, lazy evaulation and`pipe()`; implements Traits (from Rust)/Type Classes (from Haskell) in JS. -TS.

Libraries
F

Fluture

– A Future library with included control utilities, high performance and great error messages.

Libraries
F

fn-curry

– A simple function to curry a function.

Libraries
F

fnuc

– A functional library for CoffeeScript (and JavaScript) to facilitate functional composition and higher order functions.

Libraries
F

Folktale

– A standard library for functional programming in JavaScript. Typescript support expected mid-2020. -TS.

Libraries
F

fp-dom

– Making the DOM functional.

Libraries
F

fp-multik

JS/TS lightweight value-multimethod util

Libraries
F

fp-ts

Typed functional programming in TypeScript. +CT, +TS.

Libraries
F

fpEs

A small library provides simple usages of basic FP & pattern-matching/sumtype & MonadIO/Rx & Optional for Javascript. -TS.

Libraries
F

FPO.js

– FP library for JavaScript by Kyle Simpson (aka getify). Supports named-argument style methods.

Libraries
F

freeky

– A collection of Free monads.

Libraries
F

fun-task

– An abstraction for managing asynchronous code in JS. Tasks are similar to Promises with the key difference that Tasks can represent a computation while Promises can represent only the results of a computation. Ships with Flow type definitions.

Libraries
F

functional.js

– A lightweight functional JavaScript library that facilitates currying and point-free / tacit programming.

Libraries
F

functionize

– A collection of functions which aid in making non-functional libraries functional.

Libraries
F

funcy

– An experiment in adding functional pattern matching to JavaScript. Experimental :triangularflagon_post:

Libraries
F

funfix

– Funfix is a library of type classes and data types for Functional Programming in JavaScript, TypeScript and Flow. +CT, +TS.

Libraries
F

futil-js

A collection of functional utilities that could conceivably be part of a library like lodash/fp, but for some reason or other are not.

Libraries
F

fxts

Lazy evaluation and concurrency. +TS

Libraries
H

hyogwa

Natural 🌿 effect system that fits TypeScript; Write codes as you write **plain typescript code**.

Libraries
I

Icepick

Utilities for treating frozen JavaScript objects as persistent immutable collections

Libraries
I

imlazy

– Library for creating and manipulating lazy iterables using the ES2015 iteration protocols.

Libraries
I

Immer

– Immer is a tiny package for immutable state based on copy-on-write mechanism. +TS.

Libraries
I

immutable-ext

– FantasyLand extensions for Immutable.js.

Libraries
I

immutable-sequence.js

– High performance implementation of Immutable Sequence in JavaScript, based on Finger Trees.

Libraries
I

Immutable.js

– Immutable persistent data collections.

Libraries
I

iter-tools

a rich toolset for working with iterables, both sync and async. +TS.

Libraries
J

Javascript Parser Combinator

– Javascript parser combinator implementation inspired by the Haskell's Parsec

Libraries
J

js-joda

– An immutable date and time library that provides a simple, domain-driven and clean API based on the ISO8601 calendar.

Libraries
K

klubok

Pipes with easy mocking, intended for huge amount of unit tests. +TS

Libraries
K

kudo-js

A small utility library with a set of Algebraic Data Types and Helper functions to help you write code in a functional programming style in Javascript

Libraries
L

lambdajs

– The full ECMAScript API done a functional way.

Libraries
L

Lazy.js

– A utility library with a lazy engine under the hood that strives to do as little work as possible while being as flexible as possible.

Libraries
L

lenses

– Composable kmett style lenses.

Libraries
L

lfi

A Lazy Functional Iteration Library Supporting Sync, Async, and Concurrent Iteration.

Libraries
L

List

An extremely fast immutable list with a comprehensive functional API. Designed to seamlessly integrate with Ramda.

Libraries
L

lodash/fp

– An instance of Lodash with its methods wrapped to produce immutable, auto-curried, iteratee-first, data-last methods. +TS.

Libraries
M

MojiScript

an async-first, opinionated, and functional language designed to have 100% compatibility with JavaScript engines

Libraries
M

monet.js

– A library that assists functional programming by providing a rich set of Monads and other useful functions. +CT, +TS.

Libraries
M

Mori

– ClojureScript’s persistent data structures and supporting API from the comfort of vanilla JavaScript.

Libraries
M

most

– Ultra-high performance reactive programming to help you compose asynchronous operations on streams of values and events without many of the hazards of side effects and mutable shared state.

Libraries
N

nanoscope

– Lenses with dotty support.

Libraries
N

NeverThrow

This package contains a `Result` type that represents either success (`Ok`) or failure (`Err`).

Libraries
O

omg-curry

Comprehensive Curry Library with Operator Curry, Curry from functions, Decurry and Infifnite Curries.

Libraries
O

optics

– Profunctor optics (Lens, Prism, iso).

Libraries
P

pareto-js

An extremely small, intuitive and fast functional utility library for JavaScript -TS.

Libraries
P

partial.lenses

– Partial lenses is a comprehensive, high-performance optics library for JavaScript.

Libraries
P

pico-lambda

Arrays, Strings and things the functional way. A 640b functional library based on native methods. -TS.

Libraries
P

Pratica

Small, simple, easy FP data types for pragmatic and productive developers who need to ship reliable code fast. +CT, +TS.

Libraries
P

prelude.ls

– A functionally oriented utility library somewhat based off of Haskell's Prelude module. -TS.

Libraries
P

prelude.ts

Immutable persistent collections, functional constructs such as Option and Either, and combinators. Implemented in Typescript but supports javascript too. +CT, +TS.

Libraries
P

preludejs

Hardcore Functional Programming for JavaScript. -TS.

Libraries
P

PureEval

A powerful JavaScript functional programming toolset, including utility functions and abstract data structures.

Libraries
P

purify

Functional programming library for TypeScript focusing on ADTs. +CT, +TS.

Libraries
Q

qio

– A type-safe, functional, performant, lawful, composable data structure that solves practical problems of effect-full code in node and browser. +TS

Libraries
R

Rambda

A faster alternative to Ramda in under 10kB.

Libraries
R

Rambdax

Extended version of Rambda

Libraries
R

Ramda

– A practical functional library for JavaScript that is designed specifically for a functional programming style. A style that makes it easy to create functional pipelines and never mutates user data. +TS.

Libraries
R

Ramda Adjunct

is a community-maintained extension of Ramda.

Libraries
R

Ramda-extension

is set of utility point-free functions composed only from Ramda functions.

Libraries
R

ramda-lens

– :ram: :mag_right: Lens library built on Ramda.

Libraries
R

react-on-lambda

Replace JSX in React with functions (currying, compositions and etc).

Libraries
R

remeda

A function library roughly subsetting Ramda, but written in Typescript and thus more type-friendly. +TS.

Libraries
R

rocket-pipes

Powerful pipes, that chain Promise and ADT like Maybe or Either from popular FP libraries. +TS

Libraries
R

rubico

🏞 [a]synchronous functional syntax

Libraries
R

RxEffects

Reactive state and effect management with RxJS. +TS

Libraries
S

Sanctuary

– Sanctuary makes it possible to write safe code without null checks. +CT, +TS.

Libraries
S

shades

– A lodash-inspired lens-like library for Javascript.

Libraries
S

Static Land

– Specification similar to Fantasy Land but based on static methods rather than instance methods.

Libraries
S

sweet-monads

A collection of popular monads (such as `Either` and `Maybe`) and the lazy iterator.

Libraries
T

TGrid

Grid Computing Framework, Network & Thread extension of TSTL, supporting RFC (Remote Function Call). +TS.

Libraries
T

Tifi

Tifi is a library for functional programming in TypeScript. It solves a problem of the existence of both `undefined` and `null`. Tifi is inspired by the OCaml/Reason utilities for the option data type. +CT, +TS.

Libraries
T

Timm

– Immutability helpers with fast reads and acceptable writes.

Libraries
T

trifl

– A functional user interface library with unidirectional dataflow and a virtual dom.

Libraries
T

true-myth

A library for safe, idiomatic null and error handling in TypeScript, with `Maybe` and `Result` types, supporting both a functional style and a more traditional method-call style

Libraries
T

ts-belt

Fast, modern, and practical utility library for FP in TypeScript. (Uses a data-first approach like remeda, but is faster than remeda, ramda, rambda, and lodash/fp.)

Libraries
T

ts-fp-di

Tiny TypeScript functional dependency injection, based on Node.js AsyncLocalStorage. +TS

Libraries
T

ts-multimethod

TypeScript multimethods inspired by Clojure multimethods. +TS

Libraries
T

ts-pattern

The exhaustive Pattern Matching library for TypeScript, with smart type inference. Pattern Matching is a code-branching technique coming from FP languages.

Libraries
T

TSTL

C++ STL (Standard Template Library) is implemented in TypeScript. STL Containers, iterators, algorithms and functors, that following functional programming rule, are provided. +TS.

Libraries
U

union-type

– A small JavaScript library for defining and using union types.

Libraries
V

Verticalize

Super lightweight function that looks and behaves like a pipe operator.

Libraries
Z

zen-signals

– ☯ The simplest signal library possible

Libraries
\

\_part\_

– A micro library that encourages functional programming by making native methods available as partially applied functions.

Libraries

Resources(53 items)

A

A gentle introduction to functional JavaScript

– A four-part series introduction functional programming in JavaScript that gets you up to speed what all the hype about functional programming is all about.

Resources
A

A Monad in Practicality: First-Class Failures

– A walk through some practical use cases for specific monadic structures in JavaScript: use the `Maybe` monad to handle simple failure cases and model more complex scenarios with the `Either` monad or the `Validation` applicative functor.

Resources
A

A practical guide to writing more functional Ja...

A step by step guide to convert imperative JavaScript to more declarative, functional JavaScript.

Resources
A

Anjana Vakil: Learning Functional Programming w...

A simple and understandable introduction of functional proramming in javascript.

Resources
A

Anonymous Recursion in JavaScript

Short and easy to understand article about implementing anonymous recursion in JavaScript.

Resources
B

Basic Monads in Javascript

Introduction to 2 easy monads in Javascript, Maybe & Either.

Resources
C

Classroom Coding with Prof. Frisby

– A series that builds a “practical” web application with React and functional programming in JavaScript.

Resources
C

Composing Software

A series of articles on learning functional programming and compositional software techniques in JavaScript ES6+ from the ground up by @ericelliott.

Resources
C

cube-composer

– A puzzle game inspired by functional programming.

Resources
D

Data Structures in JavaScript

– A series of blog posts that reimplements various data structures in JavaScript to better understand their benefits and downsides.

Resources
E

Eloquent JavaScript

. A modern introduction to programming using JavaScript. By Marijn Haverbeke (2014)

Resources
E

Escape from Callback Mountain

Design & refactoring tips for Promise-based Functional JavaScript. Key benefits include better readability, testability, and reusability. MIT.

Resources
F

F# for JavaScript Devs

Showcasing the similarities between F# and JavaScript

Resources
F

Favoring Curry

Practical applications of currying using Ramda.

Resources
F

FP Concepts in JavaScript

– An introduction to Functional Programming Concepts in JavaScript. Uses the Ramda library to teach the concepts of composition, pointfree style, and functors through the simplest of examples.

Resources
F

FP Youtube Search

– YouTube search app with ReactJS, Redux, and FP concepts

Resources
F

FPJS-Class

– Functional Programming learned through JavaScript.

Resources
F

Functional Composition in Javascript

– Step by step explanation of how to compose functions in javascript.

Resources
F

Functional JavaScript

teaches how to create code that’s beautiful, safe, and simple to understand and test by using JavaScript’s functional programming support. By Michael Fogus (2013)

Resources
F

Functional Mumbo Jumbo – ADTs

– A beginner-friendly introduction to Algebraic Data Types.

Resources
F

Functional programming

– Many articles on various aspects of functional programming in JavaScript by Gleb Bahmutov.

Resources
F

Functional Programming Basics In ES6

A complete introduction to functional programming in javascript made it easy by ES6.

Resources
F

Functional Programming for JavaScript People

A complete introduction to functional programming patterns by Chet Corcos with a lot of javascript examples.

Resources
F

Functional Programming in JavaScript

teaches JavaScript developers functional techniques that will improve extensibility, modularity, reusability, testability, and performance. Through concrete examples and jargon-free explanations, this book teaches you how to apply functional programming to real-life development tasks. By Luis Atencio (2016)

Resources
F

Functional programming in JavaScript

A series by Mattias Petter Johansson, from the youtube channel FunFunFunction, that is specifically about popularization of functional programming in JavaScript.

Resources
F

Functional Programming in TypeScript

Discover functional programming with Typescript and create a library like fp-ts alongside Sahand Javid in this beginner-friendly YouTube playlist.

Resources
F

Functional Programming Jargon

– Jargon from the functional programming world explained in JavaScript.

Resources
F

Functional programming patterns for the non-mat...

– Learn about practical use cases for functors, applicatives, and monads.

Resources
F

Functional Programming Principles in Javascript

Practical code examples to learn functional programming concepts like pure function, immutability, first-class entities, and higher order functions

Resources
F

Functional programming with JavaScript

– Another introduction to Functional Programming in JavaScript with a focus on three key themes: computation as the application of functions, statelessness, avoiding side effects.

Resources
F

functional-frontend-architecture

– A functional frontend framework. Based on Ramda + union-type-js + Flyd + Snabbdom

Resources
F

functional-javascript-workshop

– The goal of this workshop is to create realistic problems that can be solved using terse, vanilla, idiomatic JavaScript to teach fundamental functional programming features of JavaScript.

Resources
F

Functional-Light JavaScript

– This book explores the core principles of functional programming (FP) that can be applied to JavaScript. But what makes this book different is that it approaches these principles without all the heavy terminology.

Resources
F

Functors from first principle - explained with JS

Explaining functors concept using JavaScript.

Resources
G

Grokking Simplicity

teaches functional programming from first principles. It uses JavaScript for all code examples and it uses real-world scenarios. By Eric Normand (2019)

Resources
H

Hardcore Functional Programming in JavaScript

– Learn to apply techniques from the forefront of computer science research to solve practical problems in Javascript. Discover functional programming and see it demonstrated step-by-step with how to build an example web app using abstract interfaces like Monads, Functors, Monoids and Applicatives. (commercial)

Resources
H

Hey Underscore, You're Doing It Wrong!

– Underscore.js claims to be a functional programming library, but is it really?

Resources
H

Holdem Evaluator

Yet another Holdem Evaluator with Ramda functional style

Resources
I

Introduction to Immutable.js and Functional Pro...

Learn about functional data structures and their uses in this overview of Facebook's popular library for JavaScript: Immutable.js.

Resources
J

JavaScript Allongé

, the “Six” edition. Starts with as little as possible about functions – but no less! – and builds up towards powerful combinators and decorators. A foundational book. By Reginald Braithwaite (2016)

Resources
J

JavaScript and Type Thinking

– Learn to reason about your JavaScript code with type thinking. Algebraic Data Types are introduced as a conceptual basis to reason about program entities.

Resources
J

JavaScript Programmers Should Learn Algebraic D...

Seth House explains how ADTs (Algebraic Data Types) can be useful to JavaScript developers.

Resources
L

Lazy, composable, and modular JavaScript

– Use four new features of ES6 – iterables, generators, fat arrows, and for-of – in conjunction with higher-order functions, function composition, and lazy evaluation, to write cleaner and more modular JavaScript.

Resources
L

Learn Rx

– A series of interactive exercises introducing five basic ingredients of functional (reactive) programming: the `map`, `filter`, `concatAll`, `reduce`, and `zip` functions.

Resources
M

Master the JavaScript Interview: What is Functi...

A simple introduction by @ericelliott to functional principles and vocabulary.

Resources
M

Monads in JavaScript

– An introduction to the Monad design pattern in JavaScript.

Resources
P

Professor Frisby’s Mostly Adequate Guide to Fun...

– This is a book on the functional paradigm in general using the world’s most popular functional programming language: JavaScript. It’s a practical introduction that builds up intuition through real-world examples. Strongly recommended. By Brian Lonsdorf (2016)

Resources
P

Pure JavaScript

– Christian Johansen will show you how you can significantly up your game by leaving loops behind and embracing functions as the primary unit of abstraction.

Resources
S

scriptum

a no-frills functional programming library and a online course based on it

Resources
S

So You Want to be a Functional Programmer

Easy to understand, with some examples, introduction to Functional Programming in Javascript and Elm.

Resources
W

Why Curry Helps

– A short overview of how to write reusable and declarative code using currying.

Resources
W

Why Ramda

– To those not used to functional programming, Ramda seems to serve no purpose whatsoever. However, it does offer a different style of coding, a style that’s taken for granted in purely functional programming languages: Ramda makes it simple for you to build complex logic through functional composition.

Resources
Y

You don't (may not) need loops ➿

Loops are one of the first constructs that junior programmers learn, but they can pose many potential issues in the software development process, and could be avoided in many cases.

Resources