I am sure there’s a function for this but I can’t remember the name. I need a function that will intersperse an element between a list of elements. I have a list of things that I want to display with a space between them.
I thought the function was actually called intersperse but I can’t find it, so it probably is not.
Any suggestions?
The idea was to do something like (printf (apply string-append (intersperse (things->string things) " ")))
@pocmatos: You probably want string-join if your list is of strings, otherwise add-between.
@lexi.lambda that’s exactly it! thanks
(string-join is basically string-append* combined with add-between.)
thanks.
Question about the web server that comes in the standard library: is there a way to wrap a servelet to strip a prefix off the URL that is passed to it?
I’d like to run a servlet at a configurable URL yet use dispatch to handle URLs.