Jump to content

Null object: Difference between revisions

→‎{{header|Lasso}}: adding null type comparison tests
No edit summary
(→‎{{header|Lasso}}: adding null type comparison tests)
Line 510:
additional properties : _n@i and _n?i are i; _n`v is _n
</lang>
 
 
=={{header|Lasso}}==
<lang Lasso>local(x = string, y = null)
#x->isA(::null)
// 0 (false)
 
#y->isA(::null)
// 1 (true)
 
#x == null
// false
 
#y == null
//true
 
#x->type == 'null'
// false
 
#y->type == 'null'
//true</lang>
 
=={{header|Logo}}==
140

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.