StackOverflow 文件 Elixir Language 教程 字串 檢查 String 是否包含 Substring 檢查 String 是否包含 Substring Created: November-22, 2018 iex(1)> String.contains? "elixir of life", "of" true iex(2)> String.contains? "elixir of life", ["life", "death"] true iex(3)> String.contains? "elixir of life", ["venus", "mercury"] false 加入字串字串插值