Anonymous user
Empty string: Difference between revisions
add Mercury
(add →Free Pascal) |
(add Mercury) |
||
Line 1,501:
slength(s) = "";
slength(s) # "";</lang>
=={{header|Mercury}}==
There's nothing special about empty strings in Mercury.
<lang Mercury>S = "", % assignment
( if S = "" then ... else ... ), % checking if a string is empty
( if not S = "" then ... else ... ), % checking if a string is not empty</lang>
=={{header|min}}==
|