my-cond/  iffy with sweet-exp
if
else-if
7.7

my-cond/iffy with sweet-exp

 (require my-cond/iffy) package: my-cond

#lang sweet-exp racket
require my-cond/iffy
my-cond
  if condition-expr
    body-expr
    ...
  else-if condition-expr
    body-expr
    ...
  ...
  else
    body-expr
    ...
 

The my-cond/iffy module provides my-cond, if, else-if, and else, which work together to allow if expressions like the above.

syntax

if

Defined as a cond-expander to work with my-cond (see above). When not used within a my-cond expression, acts like normal rkt:if.

syntax

else-if

Defined as a cond-expander to work with my-cond (see above).