Programming-Idioms

Implementation
Erlang

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Implementation edit is for fixing errors and enhancing with metadata.

Instead of changing the code of the snippet, consider creating another Erlang implementation.

Other implementations
import "strconv"
s := strconv.Itoa(i)
my $s = "" . $i;
String s=((Integer)i).toString();
#include <stdlib.h>
char s[0x1000]={};
itoa(i,s,10);
$s = "$i";
let s = i.to_string();
import std.conv;
string s = to!string(i);
s = str(i)
var s = "$i";
SysUtils
var
  _s: String;
  _i: Integer;
begin
  _s := IntToStr(_i);
end.
s = i.to_s
s = Integer.to_string(i)
s = show i
import "strconv"
s := strconv.FormatInt(i, 10)
import "fmt"
s := fmt.Sprintf("%d", i)
var s = i.toString();
(let [s (str i)])
s = tostring(i)
string s = i.ToString()
S : String := Integer'Image (I);
#include <string>
auto s = std::to_string(i);
val s = i.toString
String s = Integer.toString(i);
String s = String.valueOf(i);
(define s (number->string i))
$s = (string)$i;
$s = "{$i}";
(setf s (princ-to-string i))
val x = 42.toString()
  write (unit=s,fmt=*) i
Dim myInt As Integer = 12345
Console.WriteLine(myInt.ToString)
let s = format!("{}",i);
var s = i + "";
String s = "" + i;
s = to_string(i)
s = "#{i}"