What is the most efficient way to concatenate two positive integers in Mathematica 7?
cc[123, 4567] >> 1234567
What about more than two?
cc[123, 4, 567, 89] >> 123456789
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will be slightly faster for many integers, than your last solution:
A more concise alternative is to accept a single argument, assuming it to be a list, rather than a sequence, of numbers to concatenate:
which is based on
IntegerStringbeingListable.