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.
- Host: GitHub
- URL: https://github.com/librity/ignite_list_filter
- Owner: librity
- Created: 2021-03-09T05:58:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T12:05:56.000Z (over 4 years ago)
- Last Synced: 2025-01-08T07:39:09.489Z (over 1 year ago)
- Topics: challenge, elixir, ignite, rocketseat
- Language: Elixir
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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