Algorithms in A, B and C just for fun! へ_(‾◡◝ )>
Currently supporting Go, Elixir, TypeScript (using Deno), Rust and Ruby
Method/function names are based on type of solution:
- iterate ('for' loops)
- recursive (Recursion)
- pattern_match (Recursion using pattern match)
- std (standard api)
brew update && brew install elixir deno go ruby-build
Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
make -j polyglot
go test ./... -v
bundle exec rake test TESTOPTS='-v'
mix test
deno test
cargo test
Try this:
cd elixir
iex -S mix
iex(1)> Polyglot.hello_favorite_language()