27 karma · joined February 12, 2008
fizzbuzz = fn(x) ->
case {rem(x, 3) == 0, rem(x, 5) == 0} do
{true, false} -> IO.puts "fizz"
{false, true} -> IO.puts "buzz"
{true, true} -> IO.puts "fizzbuzz"
_ -> IO.puts x
end
end
Enum.each Range.new(1, num), fizzbuzz
Since functions are also pattern matched in Elixir (and Erlang!) it could also be done without using case and handled purely as functions.One of the great things about the build system in Dark Souls is a build that is great for PvE may not be a great build for PvP.
Today we still have Varnish at the front of our stack for caching and also use it as a load balancer for a handful of application servers.
If somebody misnaming their "waste of server space", "project" or "startup" according to your personal definition offends you then well, that's your problem, not mine. Suck it up and learn to deal with it.
The definate danger of simply copying an idea is not knowing the motivation, thought processes and discarded tangents that lead to that idea.
I've been working on it nights and weekends. Great respite from some of the less than pleasant activities of coding at my day job.
while (true) { create_function('', ' return 0; '); }