> < ^ Date: Mon, 10 May 1993 01:33:23 +0200
> < ^ From: Jacob Hirbawi <hirbawi@commquest.com >
> ^ Subject: Calling a subroutine with a "list" instead of a "sequence"


I hate bothering the forum with something this trivial, but I can't find
anything in the manual that describes how to do the following: convert
a "list" into a "sequence" -- (I am using the terminology of Mathematica
where Sequence@@{1,2,3} returns 1,2,3 ).

For example I would like to call "Group" not with r arguments each consisisting
of a permeutation; but with a single argument consisting of a set of r

gap> Group( (1,2),(3,4),(5,6) );
Group( (1,2), (3,4), (5,6) )

Obviously this doesn't work :

gap> Group( [(1,2),(3,4),(5,6)] );
Error, operations: power of list and integer is not defined at
id := arg[1] ^ 0 ... in
Group( [ (1,2), (3,4), (5,6) ] ) called from
main loop


Jacob Hirbawi

PS. I tried mailing this to gap-trouble@samson.math.rwth-aachen.de and
trouble@samson.math.rwth-aachen.de but it bounced back. I must be
mis-remembering the name of the second forum; could someone remind me
of it please.

> < [top]