Skip to content

UnitVector

Generate a unit vector with a 1 at a specified position.

$ wo 'UnitVector[2]'
{0, 1}