Skip to content

Instantly share code, notes, and snippets.

@nicholasf
Created June 9, 2014 06:16
Show Gist options
  • Save nicholasf/ee21f793358f57989b90 to your computer and use it in GitHub Desktop.
Save nicholasf/ee21f793358f57989b90 to your computer and use it in GitHub Desktop.
iex(bark@argo)3> command "mirror me", &(String.reverse(&1))
** (exit) exited in: :gen_server.call({:global, Commands}, {:update, #Function<0.20429546/1 in Commands.add/1>}, 5000)
** (EXIT) an exception was raised:
** (BadFunctionError) expected a function, got: #Function<0.20429546/1 in Commands.add/1>
(elixir) lib/agent/server.ex:20: Agent.Server.handle_call/3
(stdlib) gen_server.erl:580: :gen_server.handle_msg/5
(stdlib) proc_lib.erl:239: :proc_lib.init_p_do_apply/3
(stdlib) gen_server.erl:190: :gen_server.call/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment