aboutsummaryrefslogtreecommitdiff
path: root/Gentle_introduction_Inpla.md
diff options
context:
space:
mode:
authorDevine Lu Linvega <aliceffekt@gmail.com>2023-03-22 20:26:38 -0700
committerGitHub <noreply@github.com>2023-03-22 20:26:38 -0700
commit0d06790170ac4bc9cad3b488dae5ae75802d60bf (patch)
tree09265cfd6fe84d1a301d25a640a6507e2962d0e3 /Gentle_introduction_Inpla.md
parent0a308f58c1863e989b70dfe2f2f4d8e8653cad06 (diff)
downloadinpla-0d06790170ac4bc9cad3b488dae5ae75802d60bf.tar.gz
inpla-0d06790170ac4bc9cad3b488dae5ae75802d60bf.zip
Update Gentle_introduction_Inpla.md
Diffstat (limited to '')
-rw-r--r--Gentle_introduction_Inpla.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Gentle_introduction_Inpla.md b/Gentle_introduction_Inpla.md
index c5b1e1a..3e4d21a 100644
--- a/Gentle_introduction_Inpla.md
+++ b/Gentle_introduction_Inpla.md
@@ -577,10 +577,10 @@ The sequence of `<condition-on-attributes>` must be finished with the otherwise
- Example: Fibonacci number:
```
- fib(result) >< (int n)
- | n == 0 => result~0
- | n == 1 => result~1
- | _ => fib(r1)~(n-1), fib(r2)~(n-2), Add(result, r2)~r1;
+ fib(r) >< (int n)
+ | n == 0 => r~0
+ | n == 1 => r~1
+ | _ => fib(r1)~(n-1), fib(r2)~(n-2), Add(r, r2)~r1;
// * We cannot write result~(r1+r2) for Add(result, r2)~r1
// because r1, r2 may have not been connected to attributes in the anonymous agents,