[Elixir][Erlang]run functions like yield

These days, I challenge exercism.io to get used some languages. Especially, I use Erlang and Swift.

Then, I found some difference between Erlang and Elixir in aspect of syntax. So, I describe them as articles to remember them.

This time, I attached gist which is run function defined in variables.

Elixir run them with func.(), but Erlang tun them with Func().. We can give variables via func.(some_variables), Elixir, and Func(Some_variables)., Erang.

These are like yield .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s