Skip to content

BlockMap

Applies a function to consecutive blocks of a list.

$ wo 'BlockMap[f, Range[6], 2]'
{f[{1, 2}], f[{3, 4}], f[{5, 6}]}