Sequences are created with the help of the ‘seq’ command. Following is a simple example of a sequence creation.
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example  (println (seq [1 2 3]))) (Example)
The above program produces the following output.
(1 2 3)
Following are the various methods available for sequences.
|Sr.No.||Methods & Description|
Returns a new sequence where ‘x’ is the first element and ‘seq’ is the rest.
Returns a new sequence where ‘x’ is the element that is added to the end of the sequence.
This is used to concat two sequences together.
Used to only ensure that distinct elements are added to the sequence.
Reverses the elements in the sequence.
Returns the first element of the sequence.
Returns the last element of the sequence.
Returns the entire sequence except for the first element.
Returns a sorted sequence of elements.
Drops elements from a sequence based on the number of elements, which needs to be removed.
Takes the last list of elements from the sequence.
Takes the first list of elements from the sequence.
Splits the sequence of items into two parts. A location is specified at which the split should happen.