KCL Library Referencestdtypesany

anyType in std::types

The any type is the type of all possible values in KCL. I.e., if a function accepts an argument with type any, then it can accept any value.

Examples

fn acceptAnything(@input: any) {
  return true
}

acceptAnything(42)
acceptAnything('hello')
acceptAnything(XY)
acceptAnything([0, 1, 2])