package flare.query.methods { import flare.query.Fn; import flare.util.Vectors; /** * Creates a new Fn query operator for a function in a query. * @param name the name of the function. This should be a function * registered with the Fn class. * @param args a list of arguments to the function * @return the new Fn operator */ public function fn(name:String, ...args):Fn { var f:Fn = new Fn(name); f.setChildren(Vectors.copyFromArray(args)); return f; } }