Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

ignore

ignore

(T 
type
, x T)
 => 
unit
[Contains abstract features]
ignore -- function mapping any value to unit

This can be used to ignore the result of an expression, e.g. the
instance returned by a constructor or the value returned by a fuction.

Ex. with these features

hello is
say "Hello!"

say_and_inc(x i32) i32 =>
say x
x+1

the results can be ignored as follows

hello |> ignore
(say_and_inc 42) |> ignore
ignore hello
ignore (say_and_inc 42)
_ := hello
_ := say_and_inc 42

Type Parameters

0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)