exploration-station

Miscellaneous practice code samples in various new languages.

So, in an effort to broaden my horizons, I've started trying to learn a few other languages, including Crystal and Dart.

Here are some miscellaneous code samples.

#####Running the Dart examples:

Follow the Dart installation directions then run code by doing dart fizzbuzz.dart.

#####Running the Crystal examples:

Follow the Crystal installation directions then crystal fizzbuzz.cr.

#####Running the Rust examples:

You can run them as an executable in your terminal. For example, ./fizzbuzz while in the Rust directory.

If you want to mess around with them and recompile the executable, follow the Rust installation directions then compile with rustc fizzbuzz.rs.

#####Running the Haskell examples:

Install runhaskell using brew install ghc cabal-install first, then do runhaskell fizzbuzz.hs.

#####Running the Erlang examples:

Install erl using brew install erlang then do erl. In the REPL, type c(fizzbuzz) to compile then fizzbuzz:fizzbuzzer(100).

######Running the TypeScript examples:

If you have node installed, you can run it using node dice.js.

Repository

exploration-station

Owner
Statistic
  • 0
  • 0
  • 3
  • 0
  • 0
  • over 8 years ago
  • March 4, 2016
License

Links
Synced at

Sun, 24 Nov 2024 14:53:05 GMT

Languages