COMP1811 Paradigms of Programming
String utility functions
(format string p1..pn)
Copyright By PowCoder代写 加微信 powcoder
• format is a predefined symbol/word
• symbol is a formatted string “first ~a second ~a”…
• p1…pn can be
• either atom
• or S-Expression
It returns a string replacing every ~a for respective value of each param. ~n is used to express carry return
Formatted strings
(a handy utility)
(string->list string)
(list->string list)
String to lists, lists to strings
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com