world_equal   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm

Implementation

(bind-func world_equal
  (lambda (w1 w2)
    (if (or (<> (world_width w1)
                (world_width w2))
            (<> (world_height w1)
                (world_height w2)))
        #f
        (let ((data1 (world_data w1))
              (data2 (world_data w2))
              (size (world_data_size w1))
              (count 0))
          (while (and (< count size)
                      (= (pref data1 count)
                         (pref data2 count)))
            (set! count (+ count 1)))
          (= size count)))))


Back to Index

Similar Entries

  • callback_goodbye_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • callback_hello_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • eq_double_equal    xtlang    /digego/extempore/tree/v0.8.9/examples/core/typeclasses.xtm
  • eq_float_equal    xtlang    /digego/extempore/tree/v0.8.9/examples/core/typeclasses.xtm
  • eq_i32_equal    xtlang    /digego/extempore/tree/v0.8.9/examples/core/typeclasses.xtm
  • eq_i64_equal    xtlang    /digego/extempore/tree/v0.8.9/examples/core/typeclasses.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • equal    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • equal?    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • impc:ir:types-equal?    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • lilv_init_world    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/lilv.xtm
  • test_world_copy    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_foo    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_indexing    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • test_world_periodic_bc    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • vector-equal?    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • world_add_blinker    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_ascii_print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_basic_print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_create    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data_index    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_data_size    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_height    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_increment_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_init    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_generation    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_to_checkerboard    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_set_to_inverse    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_step    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • world_texture_setup    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/game-of-life.xtm
  • world_width    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_equal    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • xtm_notequal    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm