From: "SHIGETOMI, Takuhiko" Date: 2005-08-30T13:48:35+09:00 Subject: Re: [Q] how to unflatten a flat-array greetings, Morgan. i concur with your point. > If I were writing something using this sort of > functionality, I think I'd need and expect > output something like: > > [nil, "aa", "bb"] > ["aa", "bb", "cc"] > ["bb", "cc", "dd"] > ["cc", "dd", "ee"] > ["dd", "ee", "ff"] > ["ee", "ff", "gg"] > ["ff", "gg", "hh"] > ["gg", "hh", "ii"] > ["hh", "ii", "jj"] > ["ii", "jj", "kk"] > ["jj", "kk", nil] > > Admittedly, it'd be hard to that reasonably with a > variable-size window of even length. But for a > previous-current-next arrangement, it seems to make > more sense to say "there is no previous" with a nil > than to basically skip the first item. true. what i am focusing on is 'current'. 'previous' and/or 'next' is not the primary interest but often help 'current' to be dealt with correctly/easily. bxwp://void/3d/universe/milky-way-galaxy/orion-arm/sol-solar-system/ 3rd-planet/fareast/jp/tky/shigetomi.takuhiko.5618