pop   xtlang


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

Implementation

(bind-func pop:[!a,List{!a}*]*
  "pop first element from list (modifies list in-place)"
  (lambda (lst)
    (if (null? lst)
        (convert null)
        (let ((element (car lst)))
          (set! lst (cdr lst))
          element))))


Back to Index

Similar Entries

  • impc:ir:compile:pop_zone    scheme
  • impc:ti:pop_zone-check    scheme
  • is_popup    xtlang
  • pop-handler    scheme
  • pop-zone    xtlang
  • qbuf_pop    xtlang
  • sampler-populate-slot    scheme