Write a Scheme function update-info that consumes an info structure (called data, in which all field
values are numbers), and a nonnegative number (called upper-bound). The function produces the number of
fields in data which are negative or are strictly greater than upper-bound. In addition, all fields of data
which are negative are replaced with 0, and all fields of data that are greater than upper-bound are replaced
with upper-bound. Use field mutation operations to update data – you may not create any new info
structures in update-info. For example,
(define d (make-info 11 9 -7)) (update-info d 10)
2 d
(make-info 10 9 0)
Name:
Anonymous2013-02-12 18:04
1. read SICP
2. put your hands on the keyboard
3. write the fucking code
Name:
Anonymous2013-02-12 18:06
4. Fail your assignment because you asked /frog/ for help.
I am >>1-san's professor and rest assured he will receive 0 marks for this exercise.
Name:
Anonymous2013-02-12 18:10
field mutation operations to update data
I recommend breaking into the professor's office and shitting all over the floor, then smudging the word "this is mutation" on the wall
>>1
Is there a convention on how this ``data'' would be represented and manipulated?
It could be from a linked list which you car and cdr directly to a silly closure which receives messages (as in SICP's implementation of objects) or actual records in Racket. The REPL output doesn't seem to match for any of such types.
Without knowing that, we can't help you.
Name:
Anonymous2013-02-12 18:32
>>15
The only info I'm given is the actual structure of info (define-struct info (one two three))
>>18
I slowly unzip your long johns with my sharp pencil dick. Here's the moment we've both been waiting for. Quivering slightly, I saw your underpants off, nicking your right thigh's main artery a bit and making it leak. I am hard as I turn round and surreptitiously insert both hands into your pee hole and open it up. A sliver of golden turn slips out of my anus.
Name:
Anonymous2013-02-12 18:36
>>17
But you're supposed to help me, my professor gave us a link to this website in case we had any questions!
>>20
I moan with pleasure as you penetrate my skull with your penis. Far from losing consciousness, the hole in my brain renders me euphoric. Your sharp dick begins to dull, so I use my pencil sharpener on it as I masturbate furiously.
By the way, I'm just wondering: have you goys ever craved jewish cock so badly that you found yourself running around outside, howling at the moon for it? Literally ROARING at the top of your lungs, wanting nothing less than a jews's dick head churning against your glottal stop?
>>23
Bleeding profusely but razor sharp again, my dick is ready for some more action. My buttocks convulse with pleasure as your sweet cranial fluids gush over my stomach. I take the time to scoop some up and inhale it; upon hitting my nasal cavity your juices instantly render me autistic. I cut off my arm and use my severed radius to fist you.
By the way, I'm just wondering: have you parasitic kikes ever craved glorious human non-parasisitc cock so badly that you found yourself running around outside, hava nagilaing at the moon for it? Literally ROARING hava nagila at the top of your parasitic kike lungs, wanting nothing less than a immaculate heavenly gentile's dick head churning against your parasitic kike glottal stop?