Skip to content

Instantly share code, notes, and snippets.

@prufrock
Last active December 16, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prufrock/5493594 to your computer and use it in GitHub Desktop.
Save prufrock/5493594 to your computer and use it in GitHub Desktop.
Playing around with erlang.
%% -*- coding: utf-8 -*-
-module(useless).
-export([useless/0, return_a_number/0, do_the_things_you_do/0]).
useless() ->
"I'm useless!÷".
return_a_number() ->
X = 4 + 4,
Y = X + 7,
Z = X + Y,
Z.
do_the_things_you_do() ->
useless(),
return_a_number().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment