Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = /crocks/

We suggest trying baseUrl =

Crocks

A collection of well known Algebraic Data Types for your utter enjoyment.

Powerful. Simple. Reliable.

Crocks is a zero dependency library that curates and provides a collection of containers with a common interface between each, where possible, Along with a large set of the helper functions necessary to hit the ground running.

Crocks

The `crocks` are the heart and soul of this library. This is where you will find all your favorite ADT's you have grown to love.

Monoids

Each Monoid provides a means to represent a binary operation and is usually locked down to a specific type. These are great when you need to combine a list of values down to one value.

Functions

A wonderfully curated collection of combinators, helper functions, logic functions, predicates, point-free functions and natural transforms.

Work in a more declarative, functional flow.

The data types provided in Crocks allow you to remove large swaths of imperative boilerplate, allowing you to think of your code in terms of what it does and not how it does it.

Use a collection of popular Algebraic Data Types (ADTs)

Have you ever heard of Maybe, Either, or, heck, even IO? These are just a few of the ADTs which Crocks brings to the table.

Combine a list of values down to one value

Crocks provides a large variety of Monoids, which are ADTs that represent a binary operation and are usually locked down it to a specific type. These are great when you need to combine two things into one under a specific operation.

Simple and unambiguous error messages

Being a library built for and by developers, Crocks has ensured it has helpful error messaging at the point of the problem, not deep down in the depths of some abstraction in crocks. The immediate feedback loop enables faster, higher quality development.