View Code? Open in Web Editor
NEW
Roman numbers in Elixir - Example
License: The Unlicense
ex_roman's Introduction
- ๐ญ Iโm currently working at e-Matrix Innovations GmbH, Austria
- ๐ฑ Iโm learning all the time
- ๐ฌ Ask me about Elixir
- ๐ซ [email protected]
- ๐ Pronouns: he/him
- โก Fun fact: Musik, Benzin und Kuchen
ex_roman's People
Contributors
Stargazers
ex_roman's Issues
With the current verssionIIII
converts to 4. But IIII
is not a valid roman number because it should be written as IV
.
- Define "Rules"
- Reject invalid numbers
- Add Benchee and a benchmark-test.
- Implement the pattern-match-function
defp map_char_to_value("I"), do: 1
as one function using a Map
, and compare performance.