first_partition

synopsis: INT first_partition(OP n, result)

description:

n must be an INTEGER object, and result becomes the PARTITION object of VECTOR kind, which is the first one according to many orders of partitions, namely the partition [n].

example:

 to loop over all partitions

 #include "def.h"
 #include "macro.h"
 ANFANG
 scan(INTEGER,a);
 first_partition(a,b);
 do {
 println(b);
 } while (next(b,b));
 ENDE


Send comments or suggestions to:
symmetrica (at) symmetrica

this page was automatically generated on So Aug 10 12:23:24 CEST 2008 on the machine btn6xa