Re: flatten/2…where is it?

Daniel Diaz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Le 02/10/2013 00:16, Sean Charles a
écrit :

I just renamed a predicate "my flatten" to "flatten" and got
this!

native
code procedure flatten/2 cannot be redefined (ignored)

Yet on the documentation I cannot find flatten/2 anywhere at
all so is that an omission from the documentation or have I done
something wrong again?

On this page:

The word flatten appears once and once only in section
10.4.1.

Thanks,

Sean.

Oups, flatten/2 is provided by gprolog but the doc is missing.
flatten/2 works as follows:

flatten(List1, List2) succeeds iff List2 is the non-nested list of
List1.

Thanks for the report.

Daniel

--

Ce message a été vérifié par
MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.