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

infix ::

infix ::

(A 
type
:
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.095dev (2025-08-15 12:02:22 GIT hash 301b5b75e77076d091b38f555473f9f0e31e5b5c built by fridi@fzen)