Empty string: Difference between revisions

(add scala)
Line 213:
str=!="" (*test not empty*)
</lang>
 
=={{header|Mirah}}==
<lang mirah>empty_string1 = ""
empty_string2 = String.new
 
puts "empty string is empty" if empty_string1.isEmpty()
puts "empty string has no length" if empty_string2.length() == 0
puts "empty string is not nil" unless empty_string1 == nil</lang>
 
=={{header|Nemerle}}==
Anonymous user