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

https://github.com/brandaoplaster/list_filtering_challenge

Filter all the numeric elements in the list and return how many odd numbers are in that list.
https://github.com/brandaoplaster/list_filtering_challenge

elixir

Last synced: 9 months ago
JSON representation

Filter all the numeric elements in the list and return how many odd numbers are in that list.

Awesome Lists containing this project

README

          

# List Filtering Challenge

Given a list of strings that represent numbers or not
(example **["1", "3", "6", "43", "banana", "6", "abc"]**),
filter all the numeric elements in the list and return how many
odd numbers are in that list.

## Installation

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

```elixir
def deps do
[
{:list_filtering_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/list_filtering_challenge](https://hexdocs.pm/list_filtering_challenge).