SkillAgentSearch skills...

Arare

Lightweight curried functional programming library

Install / Use

/learn @klaudiosinani/Arare
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center"> Arare </h1> <h4 align="center"> Lightweight auto-curried functional programming library </h4> <div align="center"> <img alt="Header" width="85%" src="media/header.png"/> </div>

Description

Lightweight and without any external dependencies arare enables you to write tacit, point-free, declarative & clean code while avoiding side-effects and mutations. Internally the library itself, comprised of over 200 functions, follows the functional programming paradigm and is materialized using fundamental functional qualities such as currying, recursion, tail calls, high-order functions, referential transparency, side-effects elimination and function composition. Additionally, arare utilizes automatic variadic currying for its functions, thus allowing the user to write more flexible, practical & minimal code, compared to regular strict currying. Finally, the library comes with a build-in interactive REPL environment, useful for directly inspecting and experimenting with all available modules without leaving the console.

Highlights

  • Over 200 available functions
  • Build-in interactive REPL
  • Point-free & tacit
  • High-order & pure functions
  • Automatic variadic currying
  • Declarative & minimal syntax
  • Side-effects & mutations free
  • Lightweight with zero dependencies
  • Build with functional code
  • Actively developed

Contents

Install

npm install arare

Usage

Import arare and start using directly any of the available modules.

const A = require('arare')

A.map(A.add(10), A.range(1, 4, 1))
//=> [11, 12, 13]

Alternatively, select and import only the modules that you need.

const {add, map, range} = require('arare')

map(add(10), range(1, 4, 1))
//=> [11, 12, 13]

REPL

Initially, install arare globally in order to be able to access the REPL environment.

npm install -g arare

To launch the REPL simply type arare from anywhere in your console.

arare # launch REPL
<div align="center"> <img alt="REPL" width="85%" src="media/repl.png"/> </div>

API

The following lists contain all available functions grouped into categories according to the type of their respective returning value.

An alphabetically ordered list of all available functions can be found here.

Any

<details> <summary>Functions whose return value <b>varies</b> according to their input.</summary> <br/> <br/> </details>

Array

<details> <summary>Functions whose return value is an <b>array</b>.</summary> <br/> <br/> </details>

Boolean

<details> <summary>Functions whose return value is a <b>boolean</b>.</summary> <br/> <br/> </details>

Function

<details> <summary>Functions whose return value is a <b>function</b>.</summary> <br/> <br/> </details>

Number

<details> <summary> Functions whose return value is a <b>number</b>.</summary> <br/>

Related Skills

View on GitHub
GitHub Stars126
CategoryDevelopment
Updated6mo ago
Forks7

Languages

JavaScript

Security Score

92/100

Audited on Sep 22, 2025

No findings