nth_tail   xtlang


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

Implementation

(bind-func nth_tail:[List{!a}*,List{!a}*,i64]*
  (lambda (lst idx)
    (if (or (<= idx 0) (null? lst))
        lst
        (nth_tail (cdr lst) (- idx 1)))))


Back to Index

Similar Entries