FunctionString

com.phasmidsoftware.lascala.fp.FunctionString
See theFunctionString companion object
case class FunctionString(f: String, ps: List[Param])

Class to represent a (renderable) function string.

Value parameters

f

the name of the function (not necessarily the same as the original definition of the corresponding function/method)

ps

a sequence of Param objects (these represent bound or unbound parameters)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def arity: Int

Attributes

Returns

the arity of this FunctionString

def bind(index: Int, w: String): Seq[Param]
def bind(index: Int, w: FunctionString): Seq[Param]
def bind(wos: Seq[Option[Either[String, FunctionString]]]): Seq[Param]

Method to bind some String values to free variables in this FunctionString.

Method to bind some String values to free variables in this FunctionString.

Value parameters

wos

a sequence of optional Strings

Attributes

Returns

a sequence of Param values where each param is a copy of the corresponding value in ps (the "original"), unless BOTH the original is free AND the optional String is Some(_)

def bound: Int

Attributes

Returns

the number of bound variables which begin the list of Params. As soon as an unbound Param is found, we return the current count.

def invert(n: Int): FunctionString
def partiallyApply[T](t: => T, skip: Int = ...): FunctionString
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Implicits

Implicits

implicit def convertBooleanToInt(b: Boolean): Int