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

infix ::

infix ::

A 
type
,
h A,
)
 => 
list A
infix operator to create a list from head h and a production
function f

This can be used, e.g., as follows:

Ex1: the identity can be used to repeat the same element


will create 1,1,1,1,...

Ex2: To create a list of all integers, use


which will produce 0,1,2,3,4,5,...

Ex3: The call


will produce the powers of two: 1,2,4,8,16,32,...

Type Parameters

Arguments

0.099dev (GIT hash a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03