我很困惑我在这里失踪了什么.我是榆树的新手,但我不知道这是怎么回事:
move : List Char -> Char -> Int
move board symbol =
let
grid =
fromList board
found =
((get 0 grid == symbol) && (get 1 grid == symbol) && (get 2 grid == symbol))
|| ((get 4 grid == symbol) && (get 4 grid == symbol) && (get 5 grid == symbol))
in
if found then
1
else
0
Run Code Online (Sandbox Code Playgroud)
错误:
The = operator is reserved for defining variables. Maybe you want == instead? Or
maybe you are defining a variable, but there is whitespace before it?
14| found =
^
Maybe <http://elm-lang.org/docs/syntax> can help you figure it out.
Detected errors in 1 module.
Run Code Online (Sandbox Code Playgroud)