An open API service indexing awesome lists of open source software.

https://github.com/brandaoplaster/recursion_challenge

Recursively calculate how many elements are in the list and return that value
https://github.com/brandaoplaster/recursion_challenge

elixir

Last synced: about 1 year ago
JSON representation

Recursively calculate how many elements are in the list and return that value

Awesome Lists containing this project

README

          

# Recursion Challenge

Create a function that, given a list of numbers (example **[1, 3, 6, 43, 6]**),
recursively calculate how many elements are in the list and return that value.

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `recursion_challenge` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:recursion_challenge, "~> 0.1.0"}
]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/recursion_challenge](https://hexdocs.pm/recursion_challenge).