Clarity theorytheory 0/50 · 0%
Data Types · easy

7. Strings and Buffers

Handling text and raw data.

Clarity has two string types: `string-ascii` and `string-utf8`. For raw binary data, it uses `buff` (buffers).

clarity
"Hello World" ;; ascii
u"Hello 🌍" ;; utf8
0x010203 ;; buffer

Check your understanding

  1. 1. How do you represent a UTF-8 string?