Skip to content

Commit

Permalink
Merge branch 'main' into reverse_array
Browse files Browse the repository at this point in the history
  • Loading branch information
j1010001 authored Jul 25, 2023
2 parents 70f1f2c + 554595a commit 28a930d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/cadence/language/values-and-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,21 @@ let c = str[0] // is the Character "a"
let uwu: String = String.fromCharacters(rawUwU) // "UwU"
```

-
```cadence
let utf8: [UInt8]
```

The byte array of the UTF-8 encoding

```cadence
let a: Character = "a"
let a_bytes = a.utf8 // `a_bytes` is `[97]`
let bouquet: Character = "\u{1F490}"
let bouquet_bytes = bouquet.utf8 // `bouquet_bytes` is `[240, 159, 146, 144]`
```

## Arrays

Arrays are mutable, ordered collections of values.
Expand Down

0 comments on commit 28a930d

Please sign in to comment.