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

https://github.com/librity/ignite_list_filter

Rocket Seat - Ignite - Elixir - Challenge 2 - A simple module that count all the odd numbers in a string list.
https://github.com/librity/ignite_list_filter

challenge elixir ignite rocketseat

Last synced: 2 months ago
JSON representation

Rocket Seat - Ignite - Elixir - Challenge 2 - A simple module that count all the odd numbers in a string list.

Awesome Lists containing this project

README

          

# ListFilter

A simple module that count all the odd numbers in a string list.

## Commands

```bash
$ mix test
$ iex -S mix
```

```elixir
> ListFilter.call(["1", "3", "6", "43", "banana", "6", "abc"])
> 3
```

## Resources

- https://stackoverflow.com/questions/22576658/convert-elixir-string-to-integer-or-float
- https://hexdocs.pm/elixir/String.html
- https://hexdocs.pm/elixir/Enum.html#filter/2