Article View: comp.lang.prolog
Article #17How to pick elements out of lists?
From: Ulrich Mayring
Date: Thu, 29 Oct 1992 14:01
Date: Thu, 29 Oct 1992 14:01
16 lines
980 bytes
980 bytes
Hello netters, I have a problem:
I have a list and need to recursively pick two elements out of it. I need
every pair of elements in every order, however the order of the pair itself
is not important. It should also be possible to pick an element and the []
as a pair, thus guaranteeing that in the end I will have every pair and
every single element. Then I will test the pair (or single) and if it doesn't
suit my purpose I want to go back into the recursion to get the next one.
Thanx a lot if you can help,
Ulrich Mayring
- Also wir waren mit grau eigentlich sehr zufrieden -
Technical Details
Message-ID:
<1992Oct29.140104.7751@coli.uni-sb.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!sbsvax!coli-gate.coli.uni-sb.de!ulmaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!sbsvax!coli-gate.coli.uni-sb.de!ulma From: ulma@coli.uni-sb.de (Ulrich Mayring) Newsgroups: comp.lang.prolog Subject: How to pick elements out of lists? Message-ID: <1992Oct29.140104.7751@coli.uni-sb.de> Date: 29 Oct 92 14:01:04 GMT Organization: U of Saarbruecken, Dept. of Computational Linguistics Lines: 16