Skip to content

mkchandler/MathFunctionsElixir

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MathFunctions

Build Status Coverage Status

This is a code exercise to implement the following math functions:

  • Min
  • Max
  • Average
  • Mode

The goal is to implement them in the lowest level possible without making use of built-in functions.

Usage

You can run this from iex like so:

$ iex -S mix
$ iex(1)> MathFunctions.min([5, 2, 3])
$ 2

See a detailed view of the test results by running:

$ mix test --trace

About

An example of implementing some math functions using Elixir.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages