Logo

Programming-Idioms

  • Lisp
  • Dart

Idiom #153 Concatenate string with integer

Create the string t as the concatenation of the string s and the integer i.

var t = '$s$i';
(format nil "~a~d" s i)
t : String := s & Integer'Image (i);

New implementation...
< >
programming-idioms.org