Montle API

class montle.PenState[source]

An enumeration.

class montle.TurtleImpl[source]

Basic class to hold implementation and state together For simplicity sake

impl

Alias for field number 1

state

Alias for field number 0

class montle.TurtleState[source]

Immutable public State.

angle

Alias for field number 1

pen

Alias for field number 2

position

Alias for field number 0

montle.curry(fun)

Curry the function : changes some parameters (the ones not passed at first) into a later function call. Effectively splits one call into two. >>> def add(a,b): … return a + b >>> addfirst = curry(add) >>> andthen = addfirst(2) >>> addthen(3) 5

montle.montle() → TurtleImpl[source]

A context in which a turtle is available, as well as its state

montle.schoenfinkel(fun)[source]

Curry the function : changes some parameters (the ones not passed at first) into a later function call. Effectively splits one call into two. >>> def add(a,b): … return a + b >>> addfirst = curry(add) >>> andthen = addfirst(2) >>> addthen(3) 5

montle.uncurry(fun)[source]

Uncurry the function : changes some :param fun: :return: