4 Generics
Many of Raqit’s relations and operators are generic to any type. You can also define your own generic functions using protocols.
syntax
(protocol stx ...)
Alias for Racket’s define-generics.
(protocol stack (push stack element) (pop stack) (top stack))
Protocols may be implemented in user-defined types via, e.g., (implements stack method ...).