Global Variables
The following global variables are available globally.
-
An alias of
resetHeading
Declaration
Swift
public let resetH: () -> TurtleCommand
-
An alias of
setHeading
Declaration
Swift
public let setH: (Int) -> TurtleCommand
-
An alias of
left
Declaration
Swift
public let lt: (Int) -> TurtleCommand
-
An alias of
right
Declaration
Swift
public let rt: (Int) -> TurtleCommand
-
An alias of
forward
.Declaration
Swift
public let fd: (Int) -> TurtleCommand
-
An alias of
loop
.Declaration
Swift
public let `repeat`: (Int, () -> [TurtleCommand]) -> TurtleCommand