chickadee » coerce » make-case-coerce

make-case-coerce CONVERTOR #!optional ALISTprocedure

Returns a coercion procedure for use with extend-coerce

CONVERTOR is a coercion procedure with the signature (OBJECT TYPE-TAG ON-ERROR -> object). ON-ERROR is a procedure/0 that is invoked when all else fails.

ALIST here is a list of (TYPE-TAG . (OBJECT -> OBJECT).