function arrayMin<ArrayType, ScalarBasicType> input ArrayType a; output ScalarBasicType b; end arrayMin;