This language bar is your friend. Select your favorite languages!

Idiom #152 Turn a character into a string

Create string s containing only the character c.

import std.conv : to;
string s = to!string(c);
import "fmt"
s := fmt.Sprintf("%c", c)
s = [c]
String s = String.valueOf(c);
String s = = new Character(c).toString();
String s = Character.toString(c);
String s = c + "";
  s: string;
  s := 'c';
s = c
s = ?c
let s = c.to_string();

Do you know the best way to do this in your language ?
New implementation...

Idiom created by