Re: [racket] String manipulation without regex opinion

2012-11-06 Thread Ryan Culpepper
On 11/06/2012 03:23 PM, Ryan Culpepper wrote: On 11/06/2012 02:59 PM, Grant Rettke wrote: Hi, Usually there are homework problems and stuff for tweaking strings but I was just playing around for the fun of it. I wondered what is the "best way" to do a couple of simple tasks but without regex. H

Re: [racket] String manipulation without regex opinion

2012-11-06 Thread Danny Yoo
Racket's loop iteration system is extensible; we can extend Racket to produce a 'for' loop that can accumulate strings. For example: ;; An example of using for/fold/derived. ;; ;; for/string: a loop variant that produces a string: (defi

Re: [racket] String manipulation without regex opinion

2012-11-06 Thread Ryan Culpepper
On 11/06/2012 02:59 PM, Grant Rettke wrote: Hi, Usually there are homework problems and stuff for tweaking strings but I was just playing around for the fun of it. I wondered what is the "best way" to do a couple of simple tasks but without regex. Here are two of them. They are not optimized I j