top
up

3.11BoxesπŸ”— i

A box is like a single-element vector. It can print as a quoted #& followed by the printed form of the boxed value. A #& form can also be used as an expression, but since the resulting box is constant, it has practically no use.

Examples:
> (define b(box "apple"))
> b

'#&"apple"

> (unbox b)

"apple"

> (set-box! b'(bananaboat))
> b

'#&(banana boat)

+Boxes in The Racket Reference provides more on boxes and box procedures.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /