Home > Archive > Prolog > May 2004 > Splitting a List using difference list
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Splitting a List using difference list
|
|
|
| Hey everyone,
I'm new to prolog, and very new to the concept of difference lists.
in fact I've yet to completely understand difference lists.
but anyway,
is it possible to split a list in two by using difference lists?
| |
| Nick Wedd 2004-05-12, 9:20 pm |
| In message <89dafb0c.0405100050.1eddf7fe@posting.google.com>, MRon
<mron@pubsandbands.com> writes
>Hey everyone,
>
>I'm new to prolog, and very new to the concept of difference lists.
>in fact I've yet to completely understand difference lists.
I recommend that you become familiar with ordinary list operations, such
as append/3, before you start reading about difference lists.
>but anyway,
>
>
>is it possible to split a list in two by using difference lists?
I don't know what you mean by "using".
It is possible to spilt a list into two lists.
It is possible to spilt a difference list into two difference lists.
It is possible to spilt a list into two difference lists.
It is possible to spilt a difference list into two lists.
It is possible to spilt a list into a list and a difference list.
Etc.
Difference lists aren't a technique, they are data structures.
Nick
--
Nick Wedd nick@maproom.co.uk
|
|
|
|
|