Question: Split function with Two Arguments

hi! Can Somebody tell me how to implement the equivalent of Mathematica's Split function with two arguments: Split[list] splits list into sublists consisting of runs of identical elements. Split[list, test] treats pairs of adjacent elements as identical whenever applying the function test to them yields True in Maple. Thanks, Raj
Please Wait...