Empty string: Difference between revisions

Add min
(Add min)
Line 1,257:
slength(s) = "";
slength(s) # "";</lang>
 
=={{header|min}}==
{{works with|min|0.19.3}}
The <code>bool</code> operator returns <code>false</code> on an empty string and <code>true</code> on a non-empty string. We can define <code>empty?</code> as the negation of <code>bool</code>.
<lang min>(bool not) :empty?
"" empty? puts!
"Rosetta Code" empty? puts!</lang>
{{out}}
<pre>
true
false
</pre>
 
=={{header|Mirah}}==
1,827

edits