开发者

Haskell: convert unicode integer to actual unicode character

Suppose that my Haskell function is given an input, which is supposed to be the number of a unicode code point. How can one convert this to t开发者_开发知识库he corresponding character?

Example:

123 to '{'.


Use toEnum. (Chars implement the Enum typeclass.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜