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

8. Optionals (some, none)

Handling values that might not exist.

An `optional` type can either be `(some value)` or `none`. This is used to handle situations where a result is uncertain, like looking up a key in a map.

clarity
(some u10)
none

Check your understanding

  1. 1. What type is returned by map-get?!