case Statement

Scheme:

(case key
( ( case_1 ... case_m ) S_1 ... S_n )
...
(else S_1 ... S_n )
)

Pascal:

case key of
case_1 , ... , case_m : S ;
...
end

C++, Java:

switch ( key ) {
case case_1 , ... , case_m : S
break;
...
default: S
}

Contents    Page-10    Prev    Next    Page+10    Index