Question pattern-matching and while_break 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Final exam Monday 4 December (Mike O'Donnell)
Date: 2000, Dec 04
From: Michael C. Brizic <m-brizic@uchicago.edu>

I am having a little difficulty with making a start on the following problem:

Define a function while_break to represent the following control structure:

while C1 do begin

S1

if C2 then break;

S2

od;

The function needs four arguments: C1, C2, S1 and S2 and an additional argument for state.

Will the function definition for this control structure call the cond function that we defined earlier? What is the additional argument "state"?


Messages

1. Feedback Look at the higher-order control structures in ML lecture notes by Mike O'Donnell, 2000, Dec 04

to: "pattern-matching and while_break"