How is select/3 implemented?

From: Yereth Jansen (yereth.no_at_spam.wanadoo.nl)
Date: 02/05/05


Date: Sat, 05 Feb 2005 22:20:02 +0100

Hello,

I am new to prolog, but currently working with an agent programming
language 3APL which uses the prolog engine JIProlog. Now maybe I am
doing something wrong here, but it seems that select/3 is not
implemented, while I want to select a value from a list and remain with
that list without the value. (delete removes all occurences, which is
not what I want... otherwise I'd be using a Set and not a List.) So does
anyone have a solution to my problem or can anyone give me the (/a)
implementation of select/3, preferably such that it will return true (or
whatever the equivalence is in Prolog) like with member/2? I am not that
much into prolog that I can do that myself atm. Didn't get further than
Haskell and that's a long time ago.. :-)

Thanks in advance,
Yereth



Relevant Pages

  • Re: Mainstreaming Prolog a Pragmatic Approach?
    ... experience is that Prolog is an incredibly useful language for virtually all ... often than not end up using Prolog. ... I think you're right when you question whether logic programming really ...
    (comp.lang.prolog)
  • Re: An even more basic question...
    ... My task was to represent these rules in Prolog, and to write an engine which, given a client's total position, could find the way of pairing its components so as to satisfy the rules with the minimum total margin requirement. ... present-day ISO Prolog is not co-extensive with the concept of Prolog -- and Prolog is not a "language" is the abusive sense in which that term is misapplied to deterministic stepwise-imperative computing notations. ... TOPIC: PROGRAMMING ... adapted to your particular scheduling problem, ...
    (comp.lang.prolog)
  • Re: An even more basic question...
    ... relatively recent standardization of prolog, how come the prolog community, ... applicable as a standalone language for product development. ... for example - noone expects SQL to ... programming language, and in time more sophisticated operational ...
    (comp.lang.prolog)
  • Re: Minsky still posting
    ... >> they seem to me significant features of its own. ... > the functiomal langauges than used with Prolog. ... operator in an imperative language. ... > part of the logic programming core of Prolog. ...
    (comp.lang.prolog)
  • Re: Mainstreaming Prolog a Pragmatic Approach?
    ... What you can do in one language, you can do in another, one ... So that's no more unique to Prolog than anything else. ... Sure you can implement depth-first backtracking in C, ... language I would choose to use for any significant piece of programming. ...
    (comp.lang.prolog)