Atom - - Mold (Reshape)

Characters:

Tags: array

Arity: dyadic

This atom is dyadic, which means it takes two arguments.

Functionality

Reshape the elements of x into the structure of y.

Details

Specifically, the elements of x (automatically cast to a singleton list) are cycled through to fill the elements of y in the order they would appear if y were Flattened (F). x is not flattened, however, so [1,2],3 ṁ 1,2,[3,4] returns [[1, 2], 3, [[1, 2], 3]].