- calling
-
using a function by giving it inputs
- constructor
-
a function that creates instances of a data structure
- contract
-
a statement of the name, domain, and range of a function
- data structure
-
a datatype which packages several datatypes as fields
- design recipe
-
a sequence of steps that helps people document, test, and write functions
- domain
-
the type or set of inputs that a function expects
- dot-accessors
-
a way to extract the values of fields an instance
- event
-
something that happens outside of a running program, which the program can respond to
- field
-
a part of a data structure that has a name and holds a single value of a specified datatype
- function
-
a mathematical object that consumes inputs and produces an output
- handler
-
Connects an event (like a tick or keypress) and a function within a reactor
- helper function
-
a small function that handles a specific part of another computation, and gets called from other functions
- hypotenuse
-
the side opposite the 90-degree angle in a right triangle
- instance
-
a specific, packaged value of a data structure that contains other values in its fields
- library
-
a collection of functions that can be made available to our program by using include
- name
-
how we refer to a function or value defined in a language (examples: +, *, star, circle)
- piecewise function
-
a function that computes different expressions based on its input
- programming language
-
a set of rules for writing code that a computer can evaluate
- purpose statement
-
a brief description of what a function does
- range
-
the type or set of outputs that a function produces
- reactor
-
a value that contains a current state, and functions for updating, drawing, and interacting with that state
- refactor
-
the process of changing the style or structure of a program’s code, without changing the program’s behavior
- state
-
the value of a changing system at any point in time (i.e. a stoplight can be in the 'red', 'yellow' or 'green' state). In Pyret, the state of a Reactor is it’s current value.
- syntax
-
the set of rules that defines a language, whether it be spoken, written, or programmed.
- variable
-
a letter, symbol, or term that stands in for a value or expression