ex_stdlib

Elixir-inspired standard library modules implemented in Erlang.

Overview

This project provides Erlang implementations of useful modules from Elixir's standard library, bringing modern functional programming patterns and concurrent programming abstractions to Erlang.

Modules

Core Modules

Features

Quick Start

Build

rebar3 compile

Run Tests

rebar3 eunit

Examples

See the examples/ directory for usage examples, or start an Erlang shell:

erl -pa _build/default/lib/ex_stdlib/ebin
% Agent example - simple state management
{ok, Agent} = agent:start_link(fun() -> 0 end).
agent:update(Agent, fun(State) -> State + 1 end).
1 = agent:get(Agent, fun(State) -> State end).

% Task example - async/await
Task = task:async(fun() -> expensive_computation() end).
OtherResult = do_other_work().
TaskResult = task:await(Task).

Project Structure

ex_stdlib/
├── src/                 # Core library modules
├── test/               # EUnit test suites
├── examples/           # Usage examples
└── _build/             # Compiled artifacts

Documentation

For detailed API documentation, see individual module documentation in the source files or generate with:

rebar3 edoc