Compile with erl -compile genetic.erl
then erl run genetic test
.
We all know what Hex is. Todd Resudek: https://www.youtube.com/watch?v=cbCnTKVLuu8
Question | Hint | Answer |
---|---|---|
Where do we put Hex configuration? | Under project/0 in a Mix file | |
What's goes into the search text | The package name + description | |
What kind of version system do we use? | Semantic: see the document |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I hereby claim:
- I am dzol on github.
- I am dzol (https://keybase.io/dzol) on keybase.
- I have a public key ASCj0ibtLHOsM04OBniCkC0vupKL2gmyO05OFwDxVfrAPwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Part I | |
x | |
|> String.split() | |
|> Enum.map(&String.to_integer/1) | |
|> Enum.chunk_every(2) | |
|> Enum.map(&List.to_tuple/1) | |
|> Enum.unzip() | |
|> then(fn {lhs, rhs} -> | |
lhs = Enum.sort(lhs) |