weldx.util.to_list

weldx.util.to_list(var)

Store the passed variable into a list and return it.

If the variable is already a list, it is returned without modification. If None is passed, the function returns an empty list.

Parameters

var – Arbitrary variable

Returns

Return type

list