Skip to content
Hyomoto edited this page Dec 12, 2020 · 12 revisions
Jump To Go Back Arguments Methods Variables

Pair( a, b )

Implements: None

A simple garbage-collected pair of values.

var _pair = new Pair( "Hello", "World!" )

show_debug_message( _pair.a + _pair.b );

Arguments

Name Type Purpose
a any The value of a
b any The value of b

Methods

Jump To top equals is

equals( a, b )

Returns: N/A undefined

Name Type Purpose
a any The value to compare a to
b any The value to compare b to

This method is used to compare two values against this pair to see if they match. This is a strict comparison, thus it will only return true if both a and b match the provided arguments.


is( type )

Returns: boolean (true or false)

Name Type Purpose
type Constructor The Constructor to compare this against.

Returns true if the provided type is Pair.


Variables

Jump To top
  • a - the a value
  • b - the b value
Clone this wiki locally