Pair

package
v0.0.0-...-53f2993 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	First() interface{}
	Second() interface{}
	Equal(Interface) bool
	ToArray() Array.Interface
	ToGoString() string
	IsNull() bool
}

Interface is the fixed two-element heterogeneous grouping: the natural key/value entry of Composition-Oriented Programming. A Pair never goes nil; the Null-Object variant honours the whole Interface.

func New

func New(first, second interface{}) Interface

New returns a Pair.Interface holding first and second.

func Null

func Null() Interface

Null returns the Null-Object Pair.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL