Re-added is_def(){

This commit is contained in:
Revar Desmera 2019-05-12 10:59:59 -07:00
parent cdaeb136d0
commit b1c7e71294

View file

@ -21,6 +21,14 @@
function default(v,dflt=undef) = is_undef(v)? dflt : v;
// Function: is_def()
// Usage:
// is_def(v)
// Description:
// Returns true if `v` is not `undef`. False if `v==undef`.
function is_def(v) = !is_undef(v);
// Function: is_vector()
// Usage:
// is_vector(v)