Companion object to RenderableFunction
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RenderableFunction.type
Members list
Value members
Concrete methods
The following apply functions are in pairs: one with FunctionString and one with just String as the second parameter.
The following apply functions are in pairs: one with FunctionString and one with just String as the second parameter.
Type parameters
- R
-
the result type
Value parameters
- f
-
a function of some mix of T resulting in R
- w
-
a String or a FunctionString
Attributes
- Returns
-
a new RenderableFunction
This is similar to the toScala method except that it isn't concerned with converting Java types to Scala. For now, there is no attempt at conversion unless T is a String. If the value cannot be converted, an exception will be thrown.
This is similar to the toScala method except that it isn't concerned with converting Java types to Scala. For now, there is no attempt at conversion unless T is a String. If the value cannot be converted, an exception will be thrown.
Type parameters
- T
-
the return type
Value parameters
- x
-
an Any
Attributes
- Returns
-
a T
This method is used to partially apply the given function (f), with the given parameter (t) and yield a function with arity one less than that of f.
This method is used to partially apply the given function (f), with the given parameter (t) and yield a function with arity one less than that of f.
Type parameters
- R
-
the type of the result of invoking f
- T
-
the type of t
Value parameters
- cbn
-
if true then the parameter is satisfied via call-by-name
- f
-
the function to be partially applied
- n
-
the arity of f
- t
-
the parameter to be applied to f
Attributes
- Returns
-
a function of arity n-1 which is the result of applying t to f
private
private
Attributes
Method to create a varargs function.
Method to create a varargs function.
NOTE: this is limited in the value of n which it can support (currently 7)
NOTE: there is a far superior way of dealing with varargs: Closure.createVarArgsClosure
Type parameters
- T
-
the type of the parameters
Value parameters
- n
-
the number of args: a number less than or equal to 7
Attributes
- Returns
-
a RenderableFunction which yields a List[T]
- See also
-
Closure
Givens
Givens
Renders a RenderableFunction as its FunctionString.
Renders a RenderableFunction as its FunctionString.