ensure_array multimethod

Methods

ensure_array(x:Any) Source: stdlib.ngs:2365
Optionally, wrap x in an array. Return x if it's already Arr.

Returns

Arr

Example

ensure_array([1,2])  # [1,2]
ensure_array("aa")   # ["aa"]