Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
5
Task/Null-object/ArkScript/null-object.ark
Normal file
5
Task/Null-object/ArkScript/null-object.ark
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(let a nil)
|
||||
(let b 5)
|
||||
|
||||
(print (nil? a))
|
||||
(print (nil? b))
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
if {![info exist nullvar]} ...
|
||||
if {![info exists arr(nullval)]} ...
|
||||
if {![dict exists $dic nullval]} ...
|
||||
set p ""
|
||||
set q {}
|
||||
set n 0
|
||||
puts [expr {$p eq {}? true : false}]
|
||||
puts [expr {$p eq ""? true : false}]
|
||||
puts [expr {$p eq $q? true : false}]
|
||||
puts [expr {$p eq 0? true : false}]
|
||||
|
|
|
|||
2
Task/Null-object/Tcl/null-object-3.tcl
Normal file
2
Task/Null-object/Tcl/null-object-3.tcl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
if {4.5} {...} ; # true
|
||||
if {4.5 - 4.5} {...} ; # false
|
||||
5
Task/Null-object/Tcl/null-object-4.tcl
Normal file
5
Task/Null-object/Tcl/null-object-4.tcl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
if {![info exist nullvar]} ...
|
||||
|
||||
if {![info exists arr(nullval)]} ...
|
||||
|
||||
if {![dict exists $dic nullval]} ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue