Beginners Question

From: Niedzwiedz Parszywy (parszywyniedzwiedz_at_poczta.onet.pl)
Date: 12/01/04


Date: Wed, 1 Dec 2004 12:16:04 -0000

Hi,

I've stuck on predicate that would filter list of elements.

As a result predicate would return list of numbers from input list i.e.:

| ?- filter([a, 1, b, 2, c, 3], List).

List = [1, 2, 3] ?;

no

I know that the key to the solution is a proper use of meta-logical
predicate number(X).

I'll appreciate any help.

Regards, Niedzwiedz