1 | // Learning |
2 | |
3 | [ |
4 | if [User < says < X < is < Y] |
5 | memorize [User < said < X < is < Y] |
6 | say [ |
7 | [ok < X < is < a < Y] |
8 | [i < will < remember < that] |
9 | ] |
10 | ] |
11 | |
12 | // Querying |
13 | |
14 | [ |
15 | if [User < says < what < is < X] |
16 | and [* < said < X < is < Y] |
17 | say [X < is < Y] |
18 | ] |
19 | |
20 | // Verifying |
21 | |
22 | [ |
23 | if [User < says < X < is < Y] |
24 | and [* < said < X < is < Y] |
25 | say [yes < i < know] |
26 | ] |
27 | |
28 | // Adding another one |
29 | |
30 | [ |
31 | if [User < says < C < is < B] |
32 | and [* < said < C < is < A] |
33 | memorize [User < said < C < is < B] |
34 | say [ |
35 | [oh < i < thought < C < was < A] |
36 | [i < will < remember < that < it [= C] < is < also < B] |
37 | ] |
38 | ] |
Began life as a copy of #1002745
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002753 |
Snippet name: | X is Y |
Eternal ID of this version: | #1002753/1 |
Text MD5: | 4f1cb439801a3d54bfb8aa5c9c15e994 |
Author: | stefan |
Category: | snl logic |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-20 03:42:50 |
Source code size: | 669 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 110 |
Referenced in: | [show references] |