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
  • callback_hello_world    xtlang
  • eq_double_equal    xtlang
  • eq_float_equal    xtlang
  • eq_i32_equal    xtlang
  • eq_i64_equal    xtlang
  • equal    xtlang
  • equal    xtlang
  • equal    xtlang
  • equal    xtlang
  • equal    xtlang
  • equal    xtlang
  • equal?    scheme
  • impc:ir:types-equal?    scheme
  • lilv_init_world    xtlang
  • test_world_copy    xtlang
  • test_world_foo    xtlang
  • test_world_indexing    xtlang
  • test_world_periodic_bc    xtlang
  • vector-equal?    scheme
  • world_add_blinker    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • world_copy    xtlang
  • world_create    xtlang
  • world_data    xtlang
  • world_data_index    xtlang
  • world_data_size    xtlang
  • world_generation    xtlang
  • world_height    xtlang
  • world_increment_generation    xtlang
  • world_init    xtlang
  • world_reset    xtlang
  • world_set_generation    xtlang
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • world_step    xtlang
  • world_texture_setup    xtlang
  • world_width    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_equal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang
  • xtm_notequal    xtlang