Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I concatenate combinations of letters and numbers in APL?

I'm in Dyalog 17 and would like to generate unique names to be used with its graphics object library. So, for example, I have the letter 'l' and want to take the number 1, convert it to a character and then concatenate the two together to form 'l1'. This is such trivial stuff in other languages but I can't find the documentation explaining how to do this in APL. Thanks for your help!

like image 305
SteveH Avatar asked Nov 19 '25 10:11

SteveH


1 Answers

To concatenate the letter 'l' to the number 1 to form the characters 'l1' you do this:

'l',⍕1
like image 98
SteveH Avatar answered Nov 22 '25 04:11

SteveH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!