Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: the 'broken' statement Message-ID: <3232@utzoo.UUCP> Date: Tue, 4-Oct-83 19:17:02 EDT Article-I.D.: utzoo.3232 Posted: Tue Oct 4 19:17:02 1983 Date-Received: Tue, 4-Oct-83 19:17:02 EDT References: <322@ucbcad.UUCP> Organization: U of Toronto Zoology Lines: 18 Bill Wulf suggested some years ago that in addition to the FOR loop, which is good for operating on all elements of a data structure, there ought to be a FIRST loop for searching data structures: FIRST i IN something-that-generates-a-sequence-of-values SUCHTHAT condition DO found it ELSE not found END (Ignore the exact punctuation, it was something like that.) I always thought this was a pretty neat idea. It's far too late to retrofit it to C, of course. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry