#algebra #monoid #functional #category-theory #abstract-algebra

nightly epsilonz_algebra

Abstract Algebra in Rust. (NOTE: this crate is merging with https://github.com/bjz/algebra)

1 unstable release

Uses old Rust 2015

0.0.1 Nov 21, 2014

#13 in #category-theory


Used in 3 crates

MIT license

32KB
1.5K SLoC

algebra.rs

Abstract Algebra in Rust

build status

Synopsis

This library implements Monoid, Semigroup and related traits. Semigroups are mathematical structures with an associative operation (e.g., (+), (*), (&&), (||), …).

The design of this library is roughly fashioned after Kmett's semigroups for Haskell.

Documentation

See the API documentation here.

Requirements

  1. Rust
  2. Cargo

You can install both with the following:

$ curl -s https://static.rust-lang.org/rustup.sh | sudo sh

See Installing Rust for further details.

Usage

$ cargo build       ## build library and binary
$ cargo test        ## run tests in ./tests
$ cargo bench       ## run benchmarks in ./benches

Discussion

There is an IRC channel on freenode (chat.freenode.net) at #epsilonz.

No runtime deps