ShenDoc 30


 

 

Equality

= tests for equality between objects, returning either true or false. Note unlike Qi II, = will work on all vectors generally; let V1 and V2 be vectors then

V1 = V2 iff ∀ i (<-address V1 i) = (<-address V2 i).

However comparison of closures or streams will return false under =. Lists, atoms, tuples and vectors are the proper range of this function. Kλ is case sensitive, (= a A) returns false.

Acknowledgements

History
Basic Types in Shen and Kλ
The Primitive Functions of Kλ
The Syntax of Kλ
Notes on the Implementation of Kλ
Boolean Operators
The Syntax of Symbols
The Semantics of Symbols in Shen and Kλ
Packages
Prolog
Shen-YACC
Strings
Strings and Pattern Matching
Lists
Streams
Character Streams and Byte Streams
Bytes and Unicode
Reader Macros
Vectors
Standard Vectors and Pattern Matching
Non-standard Vectors and Tuples
Equality
I/O
Generic Functions
Eval
Type Declarations
External Global Variables
Property Lists and Hashing
Error Handling
Numbers
Floats and Integers
The Timer
Comments
Special Forms

Built by Shen Technology (c) Mark Tarver, September 2021