function(array(1=mixed),1:int(-1..)) | function(array,mixed:int(-1..-1))
would probably be a nice type. Then something could possibly optimize the function call and give a warning instead of giving a type error.
/ Mirar
Previous text:
2003-02-12 14:19: Subject: Search bug ?
s/sort/sort or search/
search should be of type
function(array(mixed),mixed:int(-1,...))
(hmm, or does it accept a strng as first argument too?)
/ Niels Möller ()