world_copy   xtlang


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

Implementation

(bind-func world_copy
  (lambda (w)
    (let ((new_world (world_create (world_width w)
                                   (world_height w)))
          (old_data (world_data w))
          (new_data (world_data new_world)))
      ;; copy the world data
      (doloop (i (world_data_size w))
        (pset! new_data i (pref old_data i)))
      new_world)))


Back to Index

Similar Entries

  • Vcopy    xtlang
  • array_4_ptr_copy    xtlang
  • audiofile_copy_samples    xtlang
  • callback_goodbye_world    xtlang
  • callback_hello_world    xtlang
  • cl:copy-list    scheme
  • cl:tree-copy    scheme
  • copy    xtlang
  • copy    xtlang
  • copy_h    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • hcopy    xtlang
  • hcopy    xtlang
  • lilv_init_world    xtlang
  • mcopy    xtlang
  • mcopy    xtlang
  • ocv_copyto    xtlang
  • string-copy    scheme
  • sys_file_copy    xtlang
  • test_world_copy    xtlang
  • test_world_foo    xtlang
  • test_world_indexing    xtlang
  • test_world_periodic_bc    xtlang
  • tree-copy    scheme
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy    xtlang
  • vcopy_pack    xtlang
  • vcopy_pack    xtlang
  • vcopy_unpack    xtlang
  • vcopy_unpack    xtlang
  • world_add_blinker    xtlang
  • world_ascii_print    xtlang
  • world_basic_print    xtlang
  • world_create    xtlang
  • world_data    xtlang
  • world_data_index    xtlang
  • world_data_size    xtlang
  • world_equal    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
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang
  • zcopy    xtlang