use*_*156 10 string ocaml type-conversion char
我想将char转换为字符串,但我还没有找到函数string_of_char.我想只使用Pervasives中的函数来做到这一点.
string_of_char
raf*_*fix 37
你可以使用String.make :)
String.make 1 mychar
Cel*_*tik 7
您可以使用另一种:
Char.escaped 'a'
yzz*_*zlr 5
如果你使用Core,你可以写
open Core.Std let s = Char.to_string 's'
归档时间:
12 年,1 月 前
查看次数:
14385 次
最近记录:
8 年,1 月 前