Adhoc Systems

Zachary Dunn's avatar.

Zachary Dunn

@zack:mozilla.org

Bookmarked: Pattern-matching complex strings

We can pattern-match Elixir strings like any other binaries, with <> for concatenation and <<…>> to specify bit patterns: defmodule Example do def run_command("say:" <>...

https://thepugautomatic.com/2016/01/pattern-matching-complex-strings/

Comments

There aren't any comments on this post yet.