Groovy function signatures

3.89K viewsScripting

Hi, just wanted to definitively confirm one way or the other:

I believe for a groovy function to be picked up by Quantrix, its parameters and return types have to be marked specifically as one of String or double (or int, Date etc.). Am I correct in saying we can’t yet define a polymorphic function in groovy that will work as Quantrix function? I.e. I would like a function to take an Object as input and return an Object (which would typically be either a String or a double).

Also I don’t think that varargs work for groovy functions? I.e. a function that accepts a variable number of input arguments.



Great, many thanks Ben. Another feature request for your database then!

You are viewing 1 out of 2 answers, click here to view all answers.