ASSERT in SWI Prolog
- From: "Mika" <miky821@xxxxxxxx>
- Date: 14 Aug 2006 09:03:00 -0700
Hello to all,
I must resolve the following problem:
given one list of facts
fact1.
fact2.
fact3.
fact4.
fact5.
I want to replace a fact with a new fact to insert in the same
position of that replacing, as an example if I want to replace fact2
with a new fact fact6, then the DB becomes therefore:
fact1.
fact6.
fact3.
fact4.
fact5.
in order to eliminate a fact from the DB I use ' retract', but as I
make to insert a new fact in one precise position? It can be to
resolved only using ' asserta' and ' assertz'? Thanks.
.
- Follow-Ups:
- Re: ASSERT in SWI Prolog
- From: Advait
- Re: ASSERT in SWI Prolog
- From: A . L .
- Re: ASSERT in SWI Prolog
- Prev by Date: 12th Prolog Programming Contest
- Next by Date: Re: ASSERT in SWI Prolog
- Previous by thread: 12th Prolog Programming Contest
- Next by thread: Re: ASSERT in SWI Prolog
- Index(es):
Relevant Pages
|
|