Null object: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
|||
Line 13: | Line 13: | ||
''This task is not about whether a variable is defined. The task is about "null"-like values in various languages, which may or may not be related to the defined-ness of variables in your language.'' |
''This task is not about whether a variable is defined. The task is about "null"-like values in various languages, which may or may not be related to the defined-ness of variables in your language.'' |
||
<br><br> |
<br><br> |
||
=={{header|11l}}== |
|||
<lang 11l>F f([Int]? a) |
|||
I a != N |
|||
a.append(1) |
|||
f(N) |
|||
[Int] arr |
|||
f(arr) |
|||
print(arr)</lang> |
|||
{{out}} |
|||
<pre> |
|||
[1] |
|||
</pre> |
|||
=={{header|8th}}== |
=={{header|8th}}== |
||
Line 18: | Line 33: | ||
null? if "item was null" . then |
null? if "item was null" . then |
||
</lang> |
</lang> |
||
=={{header|AArch64 Assembly}}== |
=={{header|AArch64 Assembly}}== |
||
{{works with|as|Raspberry Pi 3B version Buster 64 bits}} |
{{works with|as|Raspberry Pi 3B version Buster 64 bits}} |