Logo GenPRES

Core Module

Converts an Operator to its symbol and a symbol to an Operator, and holds the Count unit with the value 1.

Functions and values

Function or value Description

count

Full Usage: count

Returns: Unit

A 'count' unit with n = 1

Returns: Unit

opFromString s

Full Usage: opFromString s

Parameters:
    s : string

Returns: Operator

Transforms a string to an operator (*, /, +, -), throws an error if no match

s : string
Returns: Operator

opToStr op

Full Usage: opToStr op

Parameters:
Returns: string

Transforms an operator to a string

op : Operator
Returns: string

Type something to start searching.