Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Developer Utilities Package >

PartitionMap

PartitionMap[f, list, n]
applies f to list after partitioning into nonoverlapping sublists of length n.
PartitionMap[f, list, n, d]
applies f to sublists obtained by partitioning with offset d.
PartitionMap[f, list, {n1, n2, ...}]
applies f after partitioning a nested list into blocks of size n1×n2×....
PartitionMap[f, list, {n1, n2, ...}, {d1, d2, ...}]
applies f after partitioning using offset di at level i.
PartitionMap[f, list, n, d, {kL, kR}]
specifies where sublists should begin and end.
PartitionMap[f, list, n, d, {kL, kR}, padding]
specifies what padding should be used.
  • PartitionMap[f, list, n, ...] is equivalent to Map[f, Partition[list, n, ...]].
  • PartitionMap[f, list, {n1, n2, ..., nd}, ...] is equivalent to Map[f, Partition[list, n, ...], {d}].
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team