所以,在Frogatto公式语言中,我们可以有一个带有多个赋值的where子句,例如a = yadda,b = foo
但是,在a
b
我希望通过将其分解为步骤where a = ..., b = ...(refers to var a)...
注意:它似乎不能以where b,a
顺序运行:
EVALUATING: [a,b] where b=a+1, a=1
ASSERTION FAILED: Unknown symbol 'a'
[a,b] where b=a+1, a=1
^^
答案 0 :(得分:1)
使用where子句的梯形图,如下所示:
[a,b] where b = a+1 where a = 1