Today I Learned

TIL, 2017-02-19

  • vim --version to figure out if the version exists.
  • Elixir pattern matching is awesome.

    fizzbuzz = fn (a, b, c) ->
      case { a, b, c } do
        { 0, 0, _ } -> "fizzbuzz"
        { 0, _, _ } -> "fizz"
        { _, 0, _ } -> "buzz"
        _ -> c
      end
    end
    

This project is maintained by daryllxd