SplitBy[list, f]list を f が適用されたときに同じ値を与える連続する要素からなるサブリストに分割する.
SplitBy[list, {f1, f2, ...}]連続的に各 でテストすることで list を繰返しサブリストに分割する.
整数部分が等しい数ごとのグループに分割する:
最初の要素が等しい3つ一組のグループに分割する:
まず第1要素で分割し,次に第2要素で分割する:
日付を同じ年ごとに分割する:
Split GatherBy Partition SortBy
400+ new features, including the new Wolfram Predictive Interface, social network analysis, enterprise CDF deployment, and more »