users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flatten/2…where is it?


From: Daniel Diaz
Subject: Re: flatten/2…where is it?
Date: Thu, 03 Oct 2013 13:04:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

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é.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]