Functle API

class functle.PenState[source]

An enumeration.

class functle.TurtleState[source]

Immutable public State.

angle

Alias for field number 1

pen

Alias for field number 2

position

Alias for field number 0

functle.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

functle.functle()[source]

A context in which a turtle is available, along with its state, and a functional application accumulator

functle.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