JanetDocsI'm feeling luckyGithub sign in

deep=



    function
    boot.janet on line 1871, column 1

    (deep= x y)
    
    Like =, but mutable types (arrays, tables, buffers) are considered
    equal if they have identical structure. Much slower than =.


1 exampleSign in to add an example
Loading...
# janet 1.10.1

(=       [1 1]   [1 1])  # => true
(=       [1 1]   [2 3])  # => false
(=       [1 1]  @[1 1])  # => false
(=       [1 1]  @[2 3])  # => false
(=      @[1 1]  @[1 1])  # => false
(=      @[1 1]  @[2 3])  # => false

(deep=   [1 1]   [1 1])  # => true
(deep=   [1 1]   [2 3])  # => false
(deep=   [1 1]  @[1 1])  # => false
(deep=   [1 1]  @[2 3])  # => false
(deep=  @[1 1]  @[1 1])  # => true
(deep=  @[1 1]  @[2 3])  # => false
cellularmitosis