Top
Back: intersectLists
Forward: member
FastBack:
FastForward:
Up: combinat_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.14.2.2 sublists

Procedure from library combinat.lib (see combinat_lib).

Usage:
sublists(L); L list

Assume:
L is a list

Return:
list of all sublists of L.

Example:
 
LIB "combinat.lib";
list L = 1,2,3,4,5;
sublists(L);
==> [1]:
==>    empty list
==> [2]:
==>    [1]:
==>       1
==> [3]:
==>    [1]:
==>       2
==> [4]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==> [5]:
==>    [1]:
==>       3
==> [6]:
==>    [1]:
==>       1
==>    [2]:
==>       3
==> [7]:
==>    [1]:
==>       2
==>    [2]:
==>       3
==> [8]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       3
==> [9]:
==>    [1]:
==>       4
==> [10]:
==>    [1]:
==>       1
==>    [2]:
==>       4
==> [11]:
==>    [1]:
==>       2
==>    [2]:
==>       4
==> [12]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       4
==> [13]:
==>    [1]:
==>       3
==>    [2]:
==>       4
==> [14]:
==>    [1]:
==>       1
==>    [2]:
==>       3
==>    [3]:
==>       4
==> [15]:
==>    [1]:
==>       2
==>    [2]:
==>       3
==>    [3]:
==>       4
==> [16]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       3
==>    [4]:
==>       4
==> [17]:
==>    [1]:
==>       5
==> [18]:
==>    [1]:
==>       1
==>    [2]:
==>       5
==> [19]:
==>    [1]:
==>       2
==>    [2]:
==>       5
==> [20]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       5
==> [21]:
==>    [1]:
==>       3
==>    [2]:
==>       5
==> [22]:
==>    [1]:
==>       1
==>    [2]:
==>       3
==>    [3]:
==>       5
==> [23]:
==>    [1]:
==>       2
==>    [2]:
==>       3
==>    [3]:
==>       5
==> [24]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       3
==>    [4]:
==>       5
==> [25]:
==>    [1]:
==>       4
==>    [2]:
==>       5
==> [26]:
==>    [1]:
==>       1
==>    [2]:
==>       4
==>    [3]:
==>       5
==> [27]:
==>    [1]:
==>       2
==>    [2]:
==>       4
==>    [3]:
==>       5
==> [28]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       4
==>    [4]:
==>       5
==> [29]:
==>    [1]:
==>       3
==>    [2]:
==>       4
==>    [3]:
==>       5
==> [30]:
==>    [1]:
==>       1
==>    [2]:
==>       3
==>    [3]:
==>       4
==>    [4]:
==>       5
==> [31]:
==>    [1]:
==>       2
==>    [2]:
==>       3
==>    [3]:
==>       4
==>    [4]:
==>       5
==> [32]:
==>    [1]:
==>       1
==>    [2]:
==>       2
==>    [3]:
==>       3
==>    [4]:
==>       4
==>    [5]:
==>       5


Top Back: intersectLists Forward: member FastBack: FastForward: Up: combinat_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.