Re: [racket-users] How to find code in the racket distro

2017-06-20 Thread Matthew Flatt
The problem with `string-titlecase` is that it's built into the predefined `'#%kernel` module. The fact that `'#%kernel' is implemented in C exacerbates the problem, but even as pieces are being moved to Scheme/Racket, it's not clear that the source of `'#%kernel` will be part of a regular Racket

Re: [racket-users] How to find code in the racket distro

2017-06-20 Thread Sam Caldwell
Using github search (going to https://github.com/racket/racket and then typing in string-titlecase to the 'search this repository' bar) I was able to quickly find this snippet in string.c: scheme_add_global_constant("string-titlecase", scheme_make_immed_prim(string_titlecase, "string-titlec

[racket-users] How to find code in the racket distro

2017-06-20 Thread Stephen De Gabrielle
Hi There was a recent question on the list about how to capitalise the first letter of a string. There were a number of good approaches, but I thought I would try look for the implementation of string-titlecase. I found it surprisingly difficult despite having the search for code functionality