Detect pairs, tripples in a list
- To: mathgroup at smc.vnet.net
- Subject: [mg22442] Detect pairs, tripples in a list
- From: hans.steffani at e-technik.tu-chemnitz.de (Hans Friedrich Steffani)
- Date: Sat, 4 Mar 2000 02:26:20 -0500 (EST)
- Organization: Chemnitz University of Technology
- Sender: owner-wri-mathgroup at wolfram.com
I have a list with many 0s and some 1s. Now I want to detect pairs and tripples of 1s with no 0 between to substitute them by a single 1 and the apropriate number of 0. How can this be done? Hans Friedrich Steffani -- Hans Friedrich Steffani Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz mailto:hans.steffani at e-technik.tu-chemnitz.de http://www.tu-chemnitz.de/~hfst/