Re: [solved] Re: kombinations



On Sun, 10 Feb 2008 20:38:08 +0100, Markus Triska wrote:

What about:

?- length(Vs, 6), maplist(between(1,6), Vs).
%@ Vs = [1, 1, 1, 1, 1, 1] ;
%@ Vs = [1, 1, 1, 1, 1, 2] ;
%@ Vs = [1, 1, 1, 1, 1, 3] ;
%@ etc.

I think that this response is not useful at all to the OP,
who is clearly still struggling with the basics of Prolog.

One learns absolutely NOTHING about Prolog by learning about
the built-ins used in Markus' solution.

So, in response to his question "What about: "
I would answer "No"

Cheers

Bart Demoen
.



Relevant Pages

  • Re: Any Crossword puzzle example?
    ... >> Your response should be here ... design, c) convert this design to the version of Prolog you are ... or a) think about the problem, b) design the algorithm, c) implement ...
    (comp.lang.prolog)
  • Re: Missing a Cut
    ... I'm new to prolog. ... Thanks for your response. ... > will be able to fix the problem by permuting the components of ...
    (comp.lang.prolog)
  • Re: genetic algorithm
    ... Bart Demoen ha scritto: ... will get response if what you want is more clearly put. ... it is not clear whether you have a Prolog specific question ... but in the near future I want to implement it with swi-prolog. ...
    (comp.lang.prolog)
  • Re: genetic algorithm
    ... Marco wrote: ... will get response if what you want is more clearly put. ... it is not clear whether you have a Prolog specific question ... or whether you are learning what a genetic algorithm is. ...
    (comp.lang.prolog)
  • Re: Hint for users of Google Groups
    ... Better tie fts now or Mustapha will hopefully born them in response to you. ... Don't try to dissolve entirely while you're struggling according to a ... independent station. ...
    (sci.crypt)