Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurabeatris/odd-list-filter
Elixir algorithm exercise to filter odd numbers from a given string list and return its quantity
https://github.com/laurabeatris/odd-list-filter
algorithms-and-data-structures elixir enumerable functional-programming
Last synced: about 1 month ago
JSON representation
Elixir algorithm exercise to filter odd numbers from a given string list and return its quantity
- Host: GitHub
- URL: https://github.com/laurabeatris/odd-list-filter
- Owner: LauraBeatris
- Created: 2021-10-04T16:43:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-04T17:48:45.000Z (over 3 years ago)
- Last Synced: 2024-11-03T16:42:30.104Z (3 months ago)
- Topics: algorithms-and-data-structures, elixir, enumerable, functional-programming
- Language: Elixir
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Odd List Filter
Elixir algorithm exercise to filter odd numbers from a given string list and return its quantity
## Interesting Resources
- [Integer.parse](https://hexdocs.pm/elixir/1.12/Integer.html#parse/2)
- [Integer guards](https://hexdocs.pm/elixir/1.12/Integer.html#guards)
- [Enumerable module](https://hexdocs.pm/elixir/1.12/Enum.html)## Module Usage
```elixir
ListFilter.call(["1", "3", "6", "43", "banana", "6", "abc"]) # Result: 3
```