Mill

com.phasmidsoftware.number.expression.mill.Mill
See theMill companion trait
object Mill

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Mill.type

Members list

Value members

Concrete methods

def apply(xs: Item*): Mill

Method to take a sequence of Items and create an appropriate Mill.

Method to take a sequence of Items and create an appropriate Mill.

Value parameters

xs

a comma-separated sequence of Item.

Attributes

Returns

an appropriate Mill.

def create(items: Seq[Item]): Mill

Alternative method of creating a Mill from a list of Items.

Alternative method of creating a Mill from a list of Items.

Value parameters

items

sequence of Item.

Attributes

Returns

a new Mill.

def parse(w: String): Try[Mill]

Method to parse a String in RPN (may extend over multiple lines) into a Mill.

Method to parse a String in RPN (may extend over multiple lines) into a Mill.

Value parameters

w

the input String.

Attributes

Returns

a Mill, wrapped in Try.

def parseInfix(w: String): Try[Mill]

Method to parse a String in infix notation (may extend over multiple lines) into a Mill.

Method to parse a String in infix notation (may extend over multiple lines) into a Mill.

Value parameters

w

the input String.

Attributes

Returns

a Mill, wrapped in Try.

Concrete fields

val empty: Mill

Empty Mill value.

Empty Mill value.

Attributes

Returns

Empty