(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)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [5 4 3 2 1])) (def seq2 (take 2 seq1)) (println seq2)) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [5 4 3 2 1])) (def seq2 (take-last 2 seq1)) (println seq2)) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [5 4 3 2 1])) (def seq2 (drop 2 seq1)) (println seq2)) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [5 4 3 2 1])) (def seq2 (sort seq1)) (println seq2)) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [1 2 3 4 5])) (println (rest seq1))) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [1 2 3])) (println (last seq1))) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (seq [1 2 3])) (println (first seq1))) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (reverse (seq [1 2 3]))) (println seq1)) (Example)
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example [] (def seq1 (distinct (seq [1 1 2 2]))) (println seq1)) (Example)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more