cperivol
2021-10-26 09:48:00

Can I get some opinions on the Right Way TM of doing (flatten (for/list ([x (xs)]) (build-flat-list x)) ?


cperivol
2021-10-26 09:48:10

(forgot a paren)


sorawee
2021-10-26 09:50:39

If https://github.com/racket/racket/pull/2483 is merged, it would be the Right Way TM of doing it.

Currently, I would write something like yours too, but I would use append* instead of flatten, since it flattens exactly one level.


cperivol
2021-10-26 09:52:53

thanks!


ben.knoble
2021-10-26 11:09:56

Maybe append-map?


cperivol
2021-10-26 13:20:45

I am trying to debug why some symbols are provided by a module but are not visible by another that requires it. Is it possible to query what symbols are provided by each module?


samth
2021-10-26 13:24:57

Another option: (for*/list ([x (xs)] [y (in-list (build-flat-list x))]) y)


laurent.orseau
2021-10-26 13:29:00

module->exports is probably what you’re looking for


laurent.orseau
2021-10-26 13:29:32

The issue may be due to rename-out, prefix-out, prefix-in, etc. Or maybe they are exported from a submodule.


cperivol
2021-10-26 13:54:52

module->exports worked, thanks!


pelumitejumola
2021-10-26 19:47:40

@pelumitejumola has joined the channel


arifshaikh.astro
2021-10-27 06:40:05

What is the general opinion on using racket for scientific computation? There are very few racket packages right now for such purpose, but before I invest time in writing one, is it wise to do this in racket ? How fast/slow is it compared to programs written in C ?