Skip to content

Varargs

Amun has typed and un typed var arguments

Un typed varargs

Un typed varargs allow you to pass any number of arguments with different types

fun function(varargs Any)

Typed varargs

Typed varargs allow you to pass any number of arguments with spesific type

fun function(varargs int64)