関数内のリスト位置xがどこにあるかを調べる方法があるかどうか疑問に思いましたか?
hep list = [if x=="you" then "u" else if x=="are" then "r" else x | x <- list]
何かのようなもの:
hep list = [if x=="by" && elemAt(x+1)=="the" && elemAt(x+2)=="way" then "btw" else if x=="are" then "r" else x | x <- list]