fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 207: allocate a list that is automatically deallocated
Idiom # 207: allocate a list that is automatically deallocated
See
programming-idioms.org
:
Code
func is a := array n i->0 # as long as a does not escape func (by being returned or referenced within a # closure that escapes func), static analysis will reclaim a's memory when # leaving func.
What are effects?
last changed: 2024-07-01
next: Idiom # 208: Formula with arrays