diff options
| author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-12-19 21:51:48 +1300 |
|---|---|---|
| committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-12-19 21:51:48 +1300 |
| commit | 0188dfb4d373cc8570222496f7d04cd3ae2774f3 (patch) | |
| tree | 98114dd37c04cf26e22dfa33d3ca2c28294983b8 /test/fivesix.adb | |
| parent | ef52c89133ced2c19dca45eac09fe09ae5c8c7c9 (diff) | |
Diffstat (limited to 'test/fivesix.adb')
| -rw-r--r-- | test/fivesix.adb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/fivesix.adb b/test/fivesix.adb index 5876c44..9620c60 100644 --- a/test/fivesix.adb +++ b/test/fivesix.adb @@ -26,10 +26,10 @@ procedure FiveSix is -- It is possible to create a recursion using functions like this... function Fives - (This : in World) - return World + (This : in Goal) + return Goal is - One, Two : World := This; + One, Two : Goal := This; begin One.Unify (One.Fresh, 5); Two.Conjunct (Fives'Access); @@ -37,8 +37,8 @@ procedure FiveSix is end Fives; - Sixes : World := Empty_World; - Result : World; + Sixes : Goal := Empty_Goal; + Result : Goal; begin @@ -51,10 +51,10 @@ begin Sixes.Unify (Sixes.Fresh, 6); Sixes.Recurse; - Result := Disjunct (Fives (Empty_World), Sixes); + Result := Disjunct (Fives (Empty_Goal), Sixes); -- Note how the States from Fives keep creating new Variables instead of looping. - TIO.Put_Line (Image (Result.Take (5))); + TIO.Put_Line (Image (Result.Run (5))); end FiveSix; |
