Clarity provides bitwise primitives: `bit-and`, `bit-or`, `bit-xor`, `bit-not`, `bit-shift-left`, and `bit-shift-right`.
clarity (bit-xor u1 u1) ;; u0 (bit-shift-left u1 u2) ;; u4
100 XP to Apprentice
Manipulating binary representations.
AI translates the explanation and quiz text while preserving code and answer scoring.
Clarity provides bitwise primitives: `bit-and`, `bit-or`, `bit-xor`, `bit-not`, `bit-shift-left`, and `bit-shift-right`.
clarity (bit-xor u1 u1) ;; u0 (bit-shift-left u1 u2) ;; u4
1. What is the result of (bit-xor u1 u1)?
2. What does (bit-shift-left u1 u1) evaluate to?