[racket] Are There More String Functions?
As a slight aside, is this module mentioned anywhere in the Racket
Guide or Racket Reference? I tried to RTFM as much as possible but
didn't see this module mentioned anywhere in the string pages. Should
this module be mentioned for others like me?
- Cristian
On Thu, Apr 12, 2012 at 4:52 AM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> Yes, mixing them is absolutely fine.
>
> Robby
>
> On Thu, Apr 12, 2012 at 12:35 AM, Erik Silkensen
> <eriksilkensen at gmail.com> wrote:
>> As far as I know it should be fine to just use a mix of the built-in and srfi/13 functions.
>>
>> -- Erik
>>
>> On Apr 11, 2012, at 11:25 PM, Cristian Esquivias wrote:
>>
>>> Hi Erik,
>>>
>>> Thanks for the library. Should I be calling (require srfi/13) or
>>> import only the functions I want? That is, can I use a mix of the
>>> built-in Racket string functions and srfi/13 functions, or will I have
>>> to migrate completely to the srfi/13 functions?
>>>
>>> - Cristian
>>>
>>> On Wed, Apr 11, 2012 at 10:06 PM, Erik Silkensen
>>> <eriksilkensen at gmail.com> wrote:
>>>> Hi Cristian,
>>>>
>>>> Check out SRFI 13: http://docs.racket-lang.org/srfi-std/srfi-13.html
>>>>
>>>> You can load it in Racket with (require srfi/13)
>>>>
>>>> -- Erik
>>>>
>>>> On Apr 11, 2012, at 10:57 PM, Cristian Esquivias wrote:
>>>>
>>>>> I just started getting my hands dirty with Racket on some utility
>>>>> scripts. Overall, it's been a great experience. My scripts are
>>>>> shorter, clearer and faster than the initial Python scripts I wrote
>>>>> (but that could be because they're my second time around).
>>>>>
>>>>> I did run into one constant obstacle while using Racket: the dearth of
>>>>> convenience string functions. There are plenty of functions for
>>>>> strings, but several functions that are present on other platforms
>>>>> (e.g., Python, Ruby, Java, etc.) don't seem to be part of the Racket
>>>>> standard library.
>>>>>
>>>>> Some of the functions I couldn't find but would've been useful were
>>>>> things like (in Racket-type naming):
>>>>>
>>>>> string-starts-with?
>>>>> string-ends-with?
>>>>> string-index-of
>>>>> string-replace
>>>>> string-trim
>>>>>
>>>>> I did a little google searching and most advice said to use the regex
>>>>> library (which I did), but the code isn't as clear had I used
>>>>> functions like the ones above.
>>>>>
>>>>> Do these functions exist anywhere? Is there a great PLaneT package
>>>>> that supplies these functions?
>>>>>
>>>>> Thanks,
>>>>> Cristian
>>>>> ____________________
>>>>> Racket Users list:
>>>>> http://lists.racket-lang.org/users
>>>>
>>
>>
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users