有两种方法可以使用两个或更多块的'where'吗?像这样的东西:
plus:: Int -> Int -> Int
plus a b = x + y
where x = f1 a
where y = f2 b
Run Code Online (Sandbox Code Playgroud)
dav*_*420 15
除了第一个以外的所有内容where:
plus:: Int -> Int -> Int
plus a b = x + y
where x = f1 a
y = f2 b
Run Code Online (Sandbox Code Playgroud)
注意