How to find index of a substring? : <p>Looking for Elixir equivalent of Ruby's:</p>

<pre><code>"john.snow@domain.com".index("@")         # =&gt; 9
"john.snow@domain.com".index("domain")    # =&gt; 10
</code></pre>
