MLStyle.Modules.Cond

@cond

  • Description : Lisp-flavored conditional branches

  • Usage: @cond begin cond1 => br1; [cond2 => br2, ...] end

using MLStyle.Modules.Cond

x = 2
@cond begin
    x < 0 => :lessthan0
    x == 0 => :equal0
    _ => :greaterthan0
end # => :greaterthan0