Function: seq-drop

seq-drop is a byte-compiled function defined in transient.el.

Signature

(seq-drop SEQUENCE N)

Documentation

Remove the first N elements of SEQUENCE and return the resulting sequence.

The result is a sequence of the same type as SEQUENCE.

If N is a negative integer or zero, SEQUENCE is returned.

Other relevant functions are documented in the sequence group.

Shortdoc

;; sequence
(seq-drop '(a b c) 2)
    => (c)

Implementations

((list list) n) in `seq-25.el'.

Optimized implementation of `seq-drop' for lists.

(sequence n) in `seq-25.el'.

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Could not find source code, showing raw function object.
#[385 "\304\203�\305!\202\f�\306\303\307\"\2067�\310\300\311\301\302\312\313\203'�\305\f!\202(�\306!\314\315!\"%\316#\210\211\262\266\202#\207"
      [#s(cl--generic seq-drop
		      ((1 #s(cl--generic-generalizer cl--generic-t-generalizer 0
						     #[385 "\300\207"
							   [nil]
							   3 "\n\n(fn NAME &rest _)"]
						     #[385 "\300\207"
							   [(t)]
							   3 "\n\n(fn TAG &rest _)"]))
		       (0 #s(cl--generic-generalizer cl--generic-typeof-generalizer 10
						     #[385 "\300\301D\302BBB\207"
							   [if type-of
							       ('null)]
							   6 "\n\n(fn NAME &rest _)"]
						     #[385 "9\205�\236\207"
							   [cl--typeof-types]
							   4 "\n\n(fn TAG &rest _)"])
			  #s(cl--generic-generalizer cl--generic-t-generalizer 0
						     #[385 "\300\207"
							   [nil]
							   3 "\n\n(fn NAME &rest _)"]
						     #[385 "\300\207"
							   [(t)]
							   3 "\n\n(fn TAG &rest _)"])))
		      (#s(cl--generic-method
			  (list t)
			  nil nil
			  #[514 "\211\233\207"
				[]
				4 "Optimized implementation of `seq-drop' for lists.\n\n(fn LIST N)"])
			 #s(cl--generic-method
			    (t t)
			    nil nil
			    #[514 "\211\300X\203�\207\301!\302^#\207"
				  [0 seq-length seq-subseq]
				  7 "\n\n(fn SEQUENCE N)"]))
		      nil)
	 nil
	 (#s(cl--generic-method
	     (list t)
	     nil nil
	     #[514 "\211\233\207"
		   []
		   4 "Optimized implementation of `seq-drop' for lists.\n\n(fn LIST N)"])
	    #s(cl--generic-method
	       (t t)
	       nil nil
	       #[514 "\211\300X\203�\207\301!\302^#\207"
		     [0 seq-length seq-subseq]
		     7 "\n\n(fn SEQUENCE N)"]))
	 #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
		       ())
	 apply type-of null gethash cl--generic-cache-miss 0 append
	 (closure
	  (cl-struct-cl--generic-tags cl-struct-cl--generic-method-tags cl-struct-cl--generic-generalizer-tags t)
	  (tag &rest _)
	  (and
	   (symbolp tag)
	   (assq tag cl--typeof-types)))
	 (closure
	  (cl-struct-cl--generic-generalizer-tags t)
	  (_tag &rest _)
	  '(t))
	 nil puthash]
      14 "\n\n(fn ARG &rest ARGS)"]