Clausal Language (ver. 5.81.16, by P.J. Voda, J. Komara, J. Kluka)
Chapter. Programs Operating on Lists.
|
|
Section. Operations on Lists.
|
|
List modification. Define the function
such that
|
|
Define the function
such that
|
|
Zip and unzip. Define the functions
and
such that
and
|
|
Interval. Define the function
such that
|
|
Elements with even and odd indices. Define the functions
and
such that
and
Hint. Use the following discrimination:
|
|
Combining two lists. Define the function
such that
|
|
Take and drop. Define the functions
and
such that
and
|
|
Minimum and maximum of lists. Define the functions
and
such that
and
|
|
Deleting elements from lists. Define the function
such that
|
|
Define the function
such that
|
|
Counting the number of occurrences in lists. Define the function
such that
|
|
Removal of duplicates from lists. Define the function
such that
|
|
Union list. Define the function
such that
|
|
Heap used: 380228 free: 133836056
Time used: 0:0:0:9