Re: find if any memers of a set are in another set (blank line finder)?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Jul 18, 2002
- 388 views
Colin, I did think of that, but I haven't made user-defined types before & when I read the manual, I thought it said that if your program encounters something in a user-typed variable that isn't the right type, the program *halts* & gives an error message. That wouldn't be what I wanted at all! Did I misunderstand the manual? Dan ----- Original Message ----- From: <cetaylor at compuserve.com> > > Dan, > > Sometimes the direct approach is the simplest and fastest: > --- > type blank_line(sequence s) > for i = 1 to length(s) do > if not find(s[i], " \t\n") then > return 0 > end if > end for > return 1 > end type > --- > > Colin Taylor >