Question 1999 Exam question #3 

Forum: Com Sci 221, U Chicago, Autumn 2001, Discuss Classwork
Re: News Description of final exam problems (Mike O'Donnell)
Date: 2001, Dec 07
From: Peter Chang agnostic98

I have trouble doing this one... particularly stuck because there are two statements executed and 2 checks inside...

the example we have:

fun while_f c b s = if (c s) then (while_f c b (b s)) else s;

has one state variable s checking whether c is true... how do I have this checking 2 of these are true or not?

anyone came up with a solution to this problem?


Messages

1. Question Similar Problem by Avi Schwab, 2001, Dec 07
2. Feedback Apply multiple condition parameters to various computed states by Mike O'Donnell, 2001, Dec 07
3. Question Pure Functional by Mamun Tanveer, 2001, Dec 07
1. Feedback Functional languages allow nested everything by Mike O'Donnell, 2001, Dec 07
2. Note Oops by Mamun Tanveer, 2001, Dec 07

to: "1999 Exam question #3"