Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 284: Create a zeroed list of integers

See programming-idioms.org:

Code

Runnable Example

Fuzion has lazy evaluation for lists, so if only a small part of the list is used, the following definition is more efficient than an array, for example.

Here are some more ways to achieve the same as well as definition using an array.

last changed: 2024-08-19