Empty string: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: remove some blank lines. -- ~~~~) |
|||
Line 568: | Line 568: | ||
Or the build-in operator: |
Or the build-in operator: |
||
<lang rascal>import String; |
<lang rascal>import String; |
||
isEmpty(s); |
if (isEmpty(s)) print("string s is empty"); |
||
if (isEmpty(s)) print("string s is not empty");</lang> |
|||
=={{header|Retro}}== |
=={{header|Retro}}== |
||
Create an empty string and assign it to a variable. In these '''keepString''' is used to ensure that the string is permanent. |
Create an empty string and assign it to a variable. In these '''keepString''' is used to ensure that the string is permanent. |