ensure multimethod

Methods

ensure(x:Any, t:Type)experimental Source: stdlib.ngs:667
EXPERIMENTAL! Do not use! Makes sure returned value is of type t. If x is already of type t, returns x. Otherwise, returns object of type t with single item x.

Parameters

ta subtype of Eachable1

Returns

Object of type t