newLISP Fan Club

Forum => newLISP newS => Topic started by: ale870 on July 30, 2009, 06:03:50 AM

Title: (append) and/or (string) including spaces (wish-list)
Post by: ale870 on July 30, 2009, 06:03:50 AM
Hello,



I think it could be useful adding an option (or creating a new function) to append some strings by automatically adding spaces. For example:



(append "my" "name" "is" "ale") --> "my name is ale"



Second request:

A function to perform more sophisticated upper-case/lower-case activities:

1) only capitals.

2) Only the first letter after a specific characteer (e.g.: ".").



Thank you.
Title:
Post by: HPW on July 30, 2009, 07:01:14 AM
What about:
(join '("my" "name" "is" "ale")" ")
Title:
Post by: Lutz on July 30, 2009, 07:28:45 AM
... and this:



http://www.newlisp.org/downloads/newlisp_manual.html#title-case
Title:
Post by: ale870 on July 30, 2009, 08:15:06 AM
@Lutz: is it a new function? I didn't notice it before!

@HPW: Thank you, but I found that solution. I was thinking that a proper function could be a "commodity". Thank you!