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

(forgot a paren)

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.

thanks!

Maybe append-map?

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?

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

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

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

module->exports
worked, thanks!

@pelumitejumola has joined the channel

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
?