Developer`
Developer`
PartitionMap
As of Version 10.2, PartitionMap has been superseded by BlockMap.
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.
Details and Options
- To use PartitionMap, you first need to load the Developer Utilities Package using Needs["Developer`"].
- 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}].
- PartitionMap can be used on SparseArray objects.