Skip to content

Instantly share code, notes, and snippets.

@staypufd
Created February 5, 2016 04:10
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staypufd/f78999507d8ce5d0f649 to your computer and use it in GitHub Desktop.
Save staypufd/f78999507d8ce5d0f649 to your computer and use it in GitHub Desktop.
Example of using SPLIT-SEQUENCE from cl-utilities package for Common Lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; 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