Hello,
I have a large list of floating point numbers.
Does anyone have a clever predicate to sublist which will extract the
elements whose immediate successors have the same sign?
I can do it by creating a new list whose elements are pairs of
successive elements of the first list, but that seems to waste a lot
of storage.
Any suggestions will be welcome.
TIA,
-sen
---------------------------------------------------------------------------
| Sheldon E. Newhouse | e-mail: sen1 at math.msu.edu |
| Mathematics Department | |
| Michigan State University | telephone: 517-355-9684 |
| E. Lansing, MI 48824-1027 USA | FAX: 517-432-1562 |
---------------------------------------------------------------------------