instagram
argument

the inputs to a function; expressions for arguments follow the name of a function

Boolean

a type of data with two values: true and false

constructor

a function that creates instances of a data structure

contract

a statement of the name, domain, and range of a function

contract error

errors where the code makes sense, but uses a function with the wrong number or type of arguments

data structure

a datatype which packages several datatypes as fields

data types

a way of classifying values, such as: Number, String, Image, Boolean, or any user-defined data structure

definitions area

the left-most text box in the Editor where definitions for values and functions are written

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

editor

software in which you can write and evaluate code

error message

information from the computer about errors in code

event

something that happens outside of a running program, which the program can respond to

example

shows the use of a function on specific inputs and the computation the function should perform on those inputs

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

function definition

code that names a function, lists its variables, and states the expression to compute when the function is used

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

image

a type of data for pictures

instance

a specific, packaged value of a data structure that contains other values in its fields

interactions area

the right-most text box in the Editor, where expressions are entered to evaluate

name

how we refer to a function or value defined in a language (examples: +, *, star, circle)

operator

a symbol that manipulates two Numbers and produces a result

piecewise function

a function that computes different expressions based on its input

purpose statement

a concise, detailed description of what a function does with its inputs

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.

syntax error

errors where the computer cannot make sense of the code (e.g. - missing commas, parentheses, unclosed strings)

value

a specific piece of data, like 5 or "hello"

variable

a letter or symbol that stands in for a value or expression