嗨,我是 haskell 的新手,我正在尝试实现以下内容,但我不能完全正确
这是我正在尝试做的基本算法让我们说你有
--define some basic example function
fun x y = x + y
--pseudo code for what i am trying to do
x >= -1.0 || x <= 1.0 --variables x must be within this range else ERROR
y >= 1.0 || y <= 2.0 --variables y must be within this range else ERROR