Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # split-at Splits the sequence of items into two parts. A location is specified at which the split should happen. ### Syntax <code> (split-at num seq1) </code> ### Example <code> (ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [5 4 3 2 1])) (println (split-at 2 seq1))) (Example) </code> #### Output <code> [(5 4) (3 2 1)] </code> ## Refs - https://www.tutorialspoint.com/clojure/clojure_sequences_splitat.htm open/split-at.txt Last modified: 2024/10/05 06:15by 127.0.0.1