Variables in GAP

  • Thread starter arokum
  • Start date
  • #1
2
0
Hi everyone,

I'm trying to assign a string in combination with an integer to a variable v. The string-part is fix, the integers comes from another variable n. For Example:

Code:
n:=10;
Print("Sym_",n);

The output of "Print(....);" (that is "Sym_10") should be assigned to another variable. Does anyone know how to do that? There doesn't seem to be a functionality analogue to the "Print()" command when it comes to assigning values to variables. Or can I use "Print()" in some way to solve my problem?

Thanks in advance.

Kind regards,
arokum
 

Answers and Replies

  • #2
2
0
Hello again,

Using "JoinStringsWithSeparator(list,[])" is no nice solution, though it works.

Kind regards,
arokum
 

Related Threads on Variables in GAP

  • Last Post
Replies
0
Views
2K
Replies
2
Views
655
Replies
8
Views
2K
S
  • Last Post
Replies
6
Views
11K
Replies
2
Views
3K
Replies
0
Views
878
  • Last Post
Replies
6
Views
7K
Top