Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
5
Task/Empty-string/ArkScript/empty-string.ark
Normal file
5
Task/Empty-string/ArkScript/empty-string.ark
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(let s "")
|
||||
(if (empty? s)
|
||||
(print "empty"))
|
||||
(if (not (empty? s))
|
||||
(print "not empty"))
|
||||
1
Task/Empty-string/DuckDB/empty-string.duckdb
Normal file
1
Task/Empty-string/DuckDB/empty-string.duckdb
Normal file
|
|
@ -0,0 +1 @@
|
|||
select '' as empty, length(empty), empty = '', empty != '';
|
||||
|
|
@ -5,8 +5,8 @@ public program()
|
|||
auto s := emptyString;
|
||||
|
||||
if (s.isEmpty())
|
||||
{ console.printLine("'", s, "' is empty") };
|
||||
{ Console.printLine("'", s, "' is empty") };
|
||||
|
||||
if (s.isNonempty())
|
||||
{ console.printLine("'", s, "' is not empty") }
|
||||
{ Console.printLine("'", s, "' is not empty") }
|
||||
}
|
||||
|
|
|
|||
6
Task/Empty-string/Nom/empty-string.num
Normal file
6
Task/Empty-string/Nom/empty-string.num
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# set the workspace buffer to ""
|
||||
clear;
|
||||
# print a message and exit if the workspace is not empty
|
||||
!"" { clear; add "workspace not empty"; print; quit; }
|
||||
# print a message and exit if the workspace is empty
|
||||
"" { add "workspace empty"; print; quit; }
|
||||
5
Task/Empty-string/TAV/empty-string.tav
Normal file
5
Task/Empty-string/TAV/empty-string.tav
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
s =: ''
|
||||
? s.Count = 0
|
||||
print "String s is empty."
|
||||
? s.Count ~= 0
|
||||
print "String s is not empty."
|
||||
Loading…
Add table
Add a link
Reference in a new issue