Re: argument order in last/2
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 26 Apr 2006 11:23:26 GMT
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
.
- Prev by Date: how to make a list of N 1s
- Next by Date: Re: how to make a list of N 1s
- Previous by thread: how to make a list of N 1s
- Next by thread: Flailing Fish in Need Of Rescue
- Index(es):
Relevant Pages
|
|