|
Re: block in recursion, Any cure for that kind of situation?: msg#00101lang.smalltalk.squeak.beginners
For the avoidance of confusion, here is a version with non-guessed syntax: f := [:a :ff | a ifTrue: [{a . (ff value: (a not) value: ff)}] ifFalse: a]. g := [:a :ff | a ifTrue: [{a . (ff value: (a not) value: ff)}] ifFalse: a]. f value: true value: g. On Jan 22, 2008 9:35 PM, Marcin Tustin <mm3@xxxxxxxxxx> wrote: You could add an extra parameter that is another block. Use that parameter as the value of carre in the block. something like: _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: block in recursion, Any cure for that kind of situation?, Marcin Tustin |
|---|---|
| Next by Date: | Re: block in recursion, Any cure for that kind of situation?, Marcin Tustin |
| Previous by Thread: | Re: block in recursion, Any cure for that kind of situation?, Marcin Tustin |
| Next by Thread: | Re: block in recursion, Any cure for that kind of situation?, Marcin Tustin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |