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    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • LEGATO_OFF    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PmEvent_note_off_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • audiofile_16bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_16bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_aiff_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_copy_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_wave_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • ax-of-a    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern.xtm
  • axiom-of-association    macro    /digego/extempore/tree/v0.8.9/libs/core/pattern.xtm
  • axiom-of-association?    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern.xtm
  • casppoff    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • change-at-index    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • cl:list-of??    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock:offset-from-server    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • delete-at-index    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • dof-frag    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • glfw_set_compatibility_profile    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_set_core_profile    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • impc:compiler:print-index-oob-error    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ir:compiler:num-of-elts    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:gl-proc-alist-index    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-getprocaddress.xtm
  • impc:ti:num-of-elts-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • index_of    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • insert-at-index    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • json_typeof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/jansson.xtm
  • midi-note-off    scheme    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • midi_note_off    xtlang    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • midi_note_off    xtlang    /digego/extempore/tree/v0.8.9/examples/core/midi_synth.xtm
  • midi_note_off    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • nof    macro    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • offset_momentum    xtlang    /digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm
  • pc:distance-of-chord    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • rtof    xtlang    /digego/extempore/tree/v0.8.9/libs/core/rational.xtm
  • sampler-set-slot-offset    scheme    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext-scm.xtm
  • set-offset-x    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • set-offset-y    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • set_sample_offset_    xtlang    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext.xtm
  • shader_set_grid_offsets    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • sys_file_eof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • test_world_indexing    xtlang    /digego/extempore/tree/v0.8.9/tests/core/game-of-life.xtm
  • walker_at_index    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • world_data_index    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_dof_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_render_init_dof_shader    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm