Re: argument order in last/2



On 2006-04-26, Erik Braun <qs206710n5sqn8r56s6pr3s980940ss3@xxxxxxxxxxxxxxxxx> wrote:
SWI-Prolog changed the argument order for last/2 some years ago.
library/lists suggests to read to page
http://www.prolog-standard.fmg.uva.nl/twiki/bin/view/Library/PredLast2
which doesn't exist anymore. Can someone point me to an existing page
containing this discussion or sum up briefly the reason for changing
the argument order?

I cannot find the page anymore, neither reconstruct much of the
argument. I guess the arguments pro are general ordering (in,out) and
that you naturally use indexing. Argument contra is that member
places the element first. So does select/3 for compatibilty with
member/2. There were also compatibility arguments. SICStus has
last(List, Last). Others?

Cheers --- Jan
.



Relevant Pages

  • Re: Rebirthing in Wyoming
    ... that i'm a member of the KKK and i kill kittens for fun every ... It's not as easy as you might think, to stop being a "Rainbow ... compelled to seek the company of my fellow humans anymore. ...
    (alt.gathering.rainbow)
  • [PATCH 03/10] ata: remove FIT() macro
    ... FIT was always applied to a member of struct ata_timing ... clamp_val will not cast to short anymore. ...
    (Linux-Kernel)
  • after dist-upgrade gnome menu disappeared
    ... I did a updade/dist-upgrade in my debian testing yesterday and, after restart my sustem, the menu bar dont start anymore! ... Please, if it is possible, send a copy direct to my e-mail address, because I am not a member in this list. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Advanced Sum or marco needed????
    ... cause I cant think anymore! ... Ive tried SUM, SUMIF, IF and cannot figure it out, maybe too advanced for a ...
    (microsoft.public.excel.worksheet.functions)
  • Re: What is your favorite munchie?
    ... Seems like everytime I bought a bag I couldn't wait until they were all ... I don't buy them anymore: ... You a member there too??? ...
    (alt.support.stop-smoking)