Cách phát âm (2)
-
/vɛɹiˈædɪk/
Ghi chú phát âm
- US
-
/vɛəɹiˈædɪk/
Ghi chú phát âm
- Received-Pronunciation
Tính từ
Taking a variable number of arguments; especially, taking arbitrarily many arguments.
Cách dùng- not-comparable
- Ví dụ
-
C's printf is one of the most widely used variadic functions.
There are some functions and predicates which we tend to think of as being able to take any number of parameters – of being of variable arity or variadic.
Thêm ví dụ (2)
The variadic functions that increase the valence of the input relation through the addition of a circumstance to the set of its argument-roles can be represented by means of an operator (or rather, a family of operators) ‘Circ’.
However, the real max procedure of Scheme is a variadic procedure, which means that it accepts any positive number of arguments: ¶ (max 5 1 3 8 9 7 2 6 4) => 9
Belonging to a variadic function.
Cách dùng- not-comparable
- Ví dụ
-
each variadic argument
Danh từ
A function that takes a variable number of arguments.
- Ví dụ
-
PHP 5.6 introduced variadics that explicitly accept a variable number of parameters.