Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcvax!unido!infbs!neitzel From: neitzel@infbs.UUCP Newsgroups: comp.lang.apl Subject: APL puzzle based on Unix' Escapes - (nf) Message-ID: <29000002@infbs.UUCP> Date: Mon, 16-Feb-87 14:31:00 EST Article-I.D.: infbs.29000002 Posted: Mon Feb 16 14:31:00 1987 Date-Received: Sun, 22-Feb-87 01:48:15 EST Lines: 14 Nf-ID: #N:infbs:29000002:000:473 Nf-From: infbs!neitzel Feb 16 20:31:00 1987 The following puzzle was quite amusing for (prep?) us this afternoon: For a string containing quoting backslashes, compute the boolean vector that marks all those backslashes -- but not backslashes that are quoted on their part! i.e.: FUN 'a\*b\\c' yields: 0 1 0 0 1 0 0 FUN 'a\\\*' yields: 0 1 0 1 0 The usual puzzle contraint applies, of course: Don't use a loop in FUN. Send solutions to: Martin Neitzel ...seismo!mcvax!unido!infbs!neitzel