Example: Calculate the maximum via .max()

public static int main (string[] args) {
// Output: ``max ('a', 'x') = x``
uchar min = uchar.max ('a', 'x');
print ("max ('a', 'x') = %c\n", min);
return 0;
}

 valac --pkg glib-2.0 uchar.max.vala

See:




2022 vala-language.org