Browse files

Have a better Erlang sample

  • Loading branch information...
1 parent 7daae2d commit fd0e12260df5de659062e4b27c10dd3b4c0a967a @josevalim josevalim committed Dec 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 index.html
@@ -153,7 +153,9 @@
<p>After all, Elixir is still Erlang. An Elixir programmer can invoke any Erlang function with no runtime cost:</p>
{% highlight ruby %}
-:lists.flatten([1,[2],3]) #=> [1,2,3]
+:crypto.md5("Using crypto from Erlang OTP")
+#=> &lt;&lt;192,223,75,115,...&gt;&gt;
{% endhighlight %}
<p>Since Elixir generates the same bytecode, Elixir is fully <a href="" target="_blank">OTP</a> compliant and doesn't try to break any of those battle-field tested techniques Erlang is familiar for. Erlang type specifications, behaviors and module attributes are all supported. It is easy to <a href="/crash-course.html#interop">add Elixir to your existing Erlang programs too (including rebar support)</a>!

0 comments on commit fd0e122

Please sign in to comment.