asFunction

fun String.asFunction(argCount: Int, function: (DoubleArray) -> Double): KthFunction

Helper function to create a KthFunction using the receiving String as key.

Return

the created KthFunction

Parameters

argCount

the argument count of the function

function

the function


Helper function to create a KthFunction with one argument using the receiving String as key.

Return

the created KthFunction

Parameters

function

the function


Helper function to create a KthFunction with two arguments using the receiving String as key.

Return

the created KthFunction

Parameters

function

the function