Qurak

BlockMap

Disponible

Applies a function to consecutive blocks of a list.

BlockMap[f, list, n]
BlockMap[f, list, n, d]
BlockMap[f, list, {n1, n2, …}, …]
BlockMap[f, Range[6], 2] → {f[{1, 2}], f[{3, 4}], f[{5, 6}]}

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP