Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
to_string(char)
S : constant String := "" & C;
(def s (str c))
string s { 'c' };
var s = new string(c, 1);
string s = c.ToString();
import std.conv : to;
string s = to!string(c);
var s=c;
S = [C]
character(len=:),allocatable :: s
character(len=1) :: c
s=c
import "fmt"
s := fmt.Sprintf("%c", c)
s = [c]
let s = c
String s = "%s".formatted(c);
String s = = new Character(c).toString();
String s = c + "";
String s = Character.toString(c);
String s = String.valueOf(c);
val s: String = c.toString()
(defparameter *s* (string c))
s = c
$s = (string) $c;
var
  s: string;
begin
  s := 'c';
end.
my $s = $c;
s = c
s = ?c
let s = c.to_string();

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