Memoize

BasicWerk   EC Support   Technique   Facebook  

20140922165423_Common_Lisp_newline

Common_Lisp_newline

 

 

nl.lisp
 
(format T "~~%~%")
(format T "NewLine~C" #\newline)
(format T "LF~C" #\lf)
(format T "CRLF~C~C" #\cr #\lf)
 

 

Shell

 
% sbcl --script nl.lisp
~%
NewLine
LF
CRLF
 
% sbcl --script nl.lisp | od -a
0000000    ~   %  nl   N   e   w   L   i   n   e  nl   L   F  nl   C   R
0000020    L   F  cr  nl                                                
0000024
 

 

ちなみに (fresh-line) は #\NewLine と同じ

 


© Shin Nakamura/BasicWerk 2014