Index

A | |

acos_, Math | |

add | |

all, List | |

anaIn, Io | |

anaOut, Io | |

anaRead, Io | |

anaWrite, Io | |

andf, Prelude | |

angle, Vector | |

any, List | |

append, List | |

apply2, Prelude | |

apply3, Prelude | |

apply4, Prelude | |

asin_, Math | |

atan_, Math | |

atan2_, Math | |

average, List | |

B | |

base, Io | |

beginSerial, Io | |

binary, Io | |

Button | |

buttonState, Button | |

C | |

ceil_, Math | |

CharList | |

clamp, Math | |

compose, Prelude | |

constant, Signal | |

cos_, Math | |

cosh_, Math | |

count, Maybe | |

cross, Vector | |

curry, Prelude | |

curry3, Prelude | |

D | |

debounce, Button | |

debounceDelay, Button | |

decimal, Io | |

degToRad, Math | |

digIn, Io | |

digOut, Io | |

digRead, Io | |

digWrite, Io | |

div, Prelude | |

dot, Vector | |

dropLast, List | |

dropRepeats, Signal | |

E | |

e, Math | |

edge, Io | |

either, Prelude | |

eq, Prelude | |

every, Time | |

exp_, Math | |

F | |

fabs_, Math | |

fallingEdge, Io | |

filter, Signal | |

flattenSafe, List | |

floor_, Math | |

fmod_, Math | |

foldl | |

foldP, Signal | |

foldr | |

foreach, List | |

frexp_, Math | |

fst, Prelude | |

Functions | |

G | |

geq, Prelude | |

get | |

gt, Prelude | |

H | |

hexadecimal, Io | |

high, Io | |

I | |

input, Io | |

inputPullup, Io | |

intToPinMode, Io | |

intToPinState, Io | |

Io | |

isJust, Maybe | |

isNothing, Maybe | |

iter, Maybe | |

J | |

join, Signal | |

just, Prelude | |

L | |

last, List | |

latch, Signal | |

ldexp_, Math | |

left, Prelude | |

leq, Prelude | |

list, Prelude | |

List | |

log_, Math | |

log10_, Math | |

low, Io | |

lt, Prelude | |

M | |

magnitude, Vector | |

magnitude2, Vector | |

make, Vector | |

map | |

map2, Signal | |

mapRange, Math | |

Math | |

max_ | |

maybe, Prelude | |

Maybe | |

member, List | |

merge, Signal | |

mergeMany, Signal | |

meta, Signal | |

min_ | |

mode, Io | |

modf_, Math | |

mul, Prelude | |

multiply, Vector | |

N | |

neq, Prelude | |

normalize, Vector | |

notf, Prelude | |

nothing, Prelude | |

now, Time | |

nth, List | |

O | |

octal, Io | |

orf, Prelude | |

output, Io | |

P | |

pi, Math | |

pinModeToInt, Io | |

pinState, Io | |

pinStateToInt, Io | |

pow_, Math | |

Prelude | |

printCharList, Io | |

printFloat, Io | |

printFloatPlaces, Io | |

printInt, Io | |

printIntBase, Io | |

printString, Io | |

project, Vector | |

projectPlane, Vector | |

pushBack, List | |

pushOffFront, List | |

R | |

radToDeg, Math | |

record, Signal | |

remove, List | |

replicate, List | |

resize, List | |

right, Prelude | |

risingEdge, Io | |

round_, Math |

Takes the inverse cosine of the given number

Adds the two arguments together.

Adds two vectors and returns the results.

Returns true if pred(elem) returns true for all elements elem in lst, otherwise false.

Creates an analog input signal given some pin identifier.

Takes in an analog input signal and writes the value contained in the signal to the given analog pin.

Reads a value directly from an analog pin.

Writes an analog (PWM) value directly to an analog pin.

A function representation of the and operator

Gives the angle in radians between the two vectors.

Returns true if pred(elem) returns true for at least one element elem in lst, otherwise false.

Appends two lists.

Applies a tuple of values to the given function

Applies a tuple of values to the given function

Applies a tuple of values to the given function

Takes the inverse sine of the given number

Takes the inverse tangent of the given number

Returns the arc tangent in radians of y/x based on the signs of both values to determine the correct quadrant.

Computes the average (mean) of a list of numbers

Sets up serial ouput

The buttonState type is used by the debounce functions to store state.

Returns the smallest integer value greater than or equal to x.

Clamps a numerical value to fall in the interval [min,max]

Composes two functions together.

Gives a signal holding a specific value.

Returns the cosine of the given value.

Returns the hyperbolic cosine of the given value.

Returns 0 if the maybe value is nothing, 1 otherwise

Gives the vector cross product of two vectors.

Curries a function with an argument arity of 2.

Curries a function with an argument arity of 3.

Debounces the incoming Io:pinState signal by checking twice in 50 ms to make sure the pushbutton is definitely pressed.

Debounces the incoming Io:pinState signal by checking twice in a short period of time to make sure the pushbutton is definitely pressed.

Converts a degree value to radians

Creates an input signal given some pin identifier.

Takes in an input signal and writes the value contained in the signal to the given pin.

Reads a value direction from a pin.

Writes a value directly to a pin.

Divides one number by the other.

Gives the dot product of two vectors

Drops the last element of a List.

Drop values that have been repeated on the given signal.

The mathematical constant e, also known as Euler’s number.

Takes in a signal and a previous state and outputs a new signal that fires when the input transitions from high to low or low to high

The either type represents values with two possibilities.

A function representation of the equality operator

Produces a signal of millisecond time stamps which fires in a time delay of the given interval.

Returns the value of e raised to the xth power.

The absolute value function.

Takes in a signal and a previous state and outputs a new signal that fires when the input signal transitions from high to low.

Filters a signal using the given predicate function.

Flattens a list of lists into a single list.

Returns the largest integer value less than or equal to x.

Returns the remainder of x divided by y.

Applies a function f to each element of the list, threading an accumulator argument through the computation.

Evaluates the equivalent of List:foldl for a maybe

Creates a past dependent signal.

Applies a function f to each element of the list in reverse order, threading an accumulator argument through the computation.

Evaluates the equivalent of List:foldr for a maybe

Calls f for each element in lst.

The returned value is the mantissa and the exponent such x = mantissa * 2 ^ exponent.

Gives the first element of a two element tuple.

A function representation of the greater than or equal operator

Returns the value associated with the maybe or crashes the program.

Gets the ith component of the given vector.

A function representation of the greater than operator

Converts an integer representation to a pinMode

Converts an integer to a pinState representation.

Returns true if the maybe value is not nothing

Returns true if the maybe value is nothing

Executes a function for a maybe value

Joins streams of two types together.

Returns the last element of the lst.

Constantly emmits the value held in the latch.

Returns x multiplied by 2 raised to the power of exponent.

A function representation of the less than or equal operator

The list record type represents an ordered series of elements of a given length.

The natural (base e) logarithm function.

The base 10 logarithm function.

A function representation of the less than operator

Gives the magnitude of the vector

Gives the square magnitude of the vector

Makes a vector from the given array

Applies f to every element of the list and returns the new list.

Transforms a maybe value by using the specified mapping function.

Applies a function f to the given input signal

Applys a mapping function to two signals.

Linearly maps a value x from range [a1,a2] to [b1,b2]

Returns the maximum element of the lst.

Returns the larger of the two numbers.

The maybe type encapsulates an optional value.

Returns true if elem is a member of lst, otherwise false.

Merges streams of the same type together.

Merges multiple signals together.

Performs a meta analysis on a signal, and outputs this result in a signal.

Returns the minimum element of the lst.

Returns the smaller of the two numbers.

The returned value is the fraction component (part after the decimal) and the integer component of the given number.

Subtracts the two arguments

Performs elementwise multiplication of two vectors.

A function representation of the inequality operator

Returns a normalized version of the given vector

A function representation of the not operator

Gives the number of milliseconds that has passed since the program began running.

Returns the nth element of the given list

A function representation of the or operator

The mathematical constant pi.

Converts a pinMode to an integer representation.

Converts a pinState to an integer representation.

Returns x raised to the y power.

Writes a character list to the serial output.

Writes a float to the serial output.

Writes a float with the given number of decimal places to the serial output.

Writes an integer to the serial output.

Writes an integer in the given base to the serial output.

Writes a string to the serial output.

Projects vector a onto another vector b

Projects a vector onto a plane defined by a normal vector

Returns a copy of the given list with the element appended to the end.

Returns a copy of the given list with the element appended to the front.

Converts a radian value to degrees

Records values in a list as they come in through the incoming signal.

Returns a copy of lst where the first element equal to elem is deleted, if there is such an element.

Initializes a new list of a given length using the given element.

Creates a copy of the list which has a new capacity m.

Takes in a signal and a previous state and outputs a new signal that fires when the input signal transitions from low to high.

Rounds to the nearest integer value.