Created
February 5, 2016 04:10
-
-
Save staypufd/f78999507d8ce5d0f649 to your computer and use it in GitHub Desktop.
Example of using SPLIT-SEQUENCE from cl-utilities package for Common Lisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; 1. Example of using quicklisp to laod in | |
;;; cl-utilities and use one function | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; Load in the cl-utilities package | |
(ql:quickload "cl-utilities") | |
;;; Tell the cl-user namespace to use the cl-utilities package | |
(use-package :cl-utilities) | |
;;; Example of the split-sequence function usage | |
(SPLIT-SEQUENCE #\SPACE "Hello I am Sam") | |
;;; Block comments are started with #| and ended with |# as below shows | |
#| | |
;;; Output of the SPLIT-SEQUENCE function usage | |
? (SPLIT-SEQUENCE #\SPACE "Hello I am Sam") | |
("Hello" "I" "am" "Sam") | |
14 | |
|# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment