如何使函数在列表中搜索单词并在列表中的单词返回 true。
例子 :
find(string) ->
List = ["bye", "hello", "hi"],
case string in List of
true ->
true;
_ ->
false
end.
find("hi there, how are you today?").
文字是:“嗨,你今天好吗?”
它应该在列表中返回 true cuz hi。