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

infix ::

infix ::

(A 
type
, h A, f Unary A 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

0.097dev (GIT hash 6a5de4939ddf29875c1d9a706508d9bfd0cd7ca9)
last changed: 2026-06-09