index_of   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/adt.xtm

Implementation

(bind-func index_of:[size_t,!a,List{!a}*]*
  "return index of first occurrence of element in lst, or -1 if not present"
  (lambda (element lst)
    (let ((f (lambda (l cnt)
               (if (null? l)
                   -1
                   (if (equal element (car l))
                       cnt
                       (f (cdr l) (set! cnt (+ cnt 1))))))))
      (f lst 0))))


Back to Index

Similar Entries

  • *midioffset*    scheme
  • LEGATO_OFF    scheme
  • PmEvent_note_off_p    xtlang
  • audiofile_16bitPCM_to_sample_be    xtlang
  • audiofile_16bitPCM_to_sample_le    xtlang
  • audiofile_24bitPCM_to_sample_be    xtlang
  • audiofile_24bitPCM_to_sample_le    xtlang
  • audiofile_aiff_read_samples    xtlang
  • audiofile_copy_samples    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • ax-of-a    scheme
  • axiom-of-association    macro
  • axiom-of-association?    scheme
  • casppoff    xtlang
  • change-at-index    scheme
  • cl:list-of??    scheme
  • clock:offset-from-server    scheme
  • delete-at-index    scheme
  • dof-frag    scheme
  • glfw_set_compatibility_profile    xtlang
  • glfw_set_core_profile    xtlang
  • impc:compiler:print-index-oob-error    scheme
  • impc:ir:compiler:num-of-elts    scheme
  • impc:ti:gl-proc-alist-index    scheme
  • impc:ti:num-of-elts-check    scheme
  • index_of    xtlang
  • insert-at-index    scheme
  • json_typeof    xtlang
  • midi-note-off    scheme
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • nof    macro
  • offset_momentum    xtlang
  • pc:distance-of-chord    scheme
  • rtof    xtlang
  • sampler-set-slot-offset    scheme
  • set-offset-x    xtlang
  • set-offset-y    xtlang
  • set_sample_offset_    xtlang
  • shader_set_grid_offsets    xtlang
  • sys_file_eof    xtlang
  • test_world_indexing    xtlang
  • walker_at_index    xtlang
  • world_data_index    xtlang
  • xtm_dof    xtlang
  • xtm_dof    xtlang
  • xtm_dof    xtlang
  • xtm_dof    xtlang
  • xtm_dof    xtlang
  • xtm_dof    xtlang
  • xtm_dof_fx    xtlang
  • xtm_dof_fx    xtlang
  • xtm_dof_fx    xtlang
  • xtm_dof_fx    xtlang
  • xtm_dof_fx    xtlang
  • xtm_render_init_dof_shader    xtlang