diff options
| author | Shinya Sato <shinnya.sato@gmail.com> | 2026-03-15 19:08:05 +0900 |
|---|---|---|
| committer | Shinya Sato <shinnya.sato@gmail.com> | 2026-03-15 19:08:05 +0900 |
| commit | 1d1bc875f1233838c123b46341e6c594e6cf5e57 (patch) | |
| tree | e6080b4a4f28a9ee22812d3e2587ef651971ea25 /Gentle_introduction_Inpla.md | |
| parent | 770d0378e42c947dbecb3d7e294ea433ac1f43d7 (diff) | |
| download | inpla-1d1bc875f1233838c123b46341e6c594e6cf5e57.tar.gz inpla-1d1bc875f1233838c123b46341e6c594e6cf5e57.zip | |
v0.13.1
Diffstat (limited to 'Gentle_introduction_Inpla.md')
| -rw-r--r-- | Gentle_introduction_Inpla.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Gentle_introduction_Inpla.md b/Gentle_introduction_Inpla.md index 5156e31..bd31326 100644 --- a/Gentle_introduction_Inpla.md +++ b/Gentle_introduction_Inpla.md @@ -412,7 +412,7 @@ It is possible to have attributes as calculation results of arithmetic operation <let-clause> ::= <name> '=' <arithmetic expression> ``` -The symbol of addition, subtraction, multiplication, division, modulo are `+`, `-`, `*`, `/` and `%`, respectively. Relational operations `==`, `!=` `<`, `<=`, `>` and `>=` return 1 for True, 0 for False. Logical operations Not `!` (`not`), And `&&` (`and`) and Or `||` (`or`) are also available where only `0` is regarded as False. +The symbol of addition, subtraction, multiplication, division, modulo are `+`, `-`, `*`, `/` and `%`, respectively. Relational operations `==`, `!=`, `<`, `<=`, `>` and `>=` return 1 for True, 0 for False. Logical operations Not `!` (`not`), And `&&` (`and`) and Or `||` (`or`) are also available where only `0` is regarded as False. * Example: an expression using `where`: @@ -764,7 +764,7 @@ In interaction rule definitions, we can specify how active pair agents are reuse (r, foo(r)) >< (result, s) -->* foo(result)~s. // where the following rule has been defined as a built-in: - // (a1,a2) ><> (b1,b2) => a1~b1, a2~b2. + // (a1,a2) >< (b1,b2) => a1~b1, a2~b2. ``` * **Map function operation**: So, the map function operation can be realised by a built-in `Map` agent with the following already defined rules: ``` |
