Skip to main content

from_2d

Function from_2d 

Source
pub fn from_2d(rows: Vec<Vec<Value>>) -> Value
Expand description

Convert a 2D grid back to a Value.

  • Empty grid → empty Array
  • Single row → flat Array
  • Multiple rows → nested Array of row Arrays