
Reading the docs: > (https://docs.racket-lang.org/math/stats.html?q=median#%28def._%28%28lib._math%2Fstatistics..rkt%29._median%29%29\|median _lt?_ _xs_ [ws]) > Equivalent to (https://docs.racket-lang.org/math/stats.html?q=median#%28def._%28%28lib._math%2Fstatistics..rkt%29._quantile%29%29\|quantile 1/2 _lt?_ _xs_ _ws_). Ok, let’s look up quantile
. > (https://docs.racket-lang.org/math/stats.html?q=median#%28def._%28%28lib._math%2Fstatistics..rkt%29._quantile%29%29\|quantile _p_ _lt?_ _xs_ [ws]) → A > If _p_ https://docs.racket-lang.org/reference/generic-numbers.html#%28def._%28%28quote._~23~25kernel%29._~3d%29%29\|= 0, https://docs.racket-lang.org/math/stats.html?q=median#%28def._%28%28lib._math%2Fstatistics..rkt%29._quantile%29%29\|quantile returns the smallest element of _xs_ under the ordering relation _lt?_. If _p_ https://docs.racket-lang.org/reference/generic-numbers.html#%28def._%28%28quote._~23~25kernel%29._~3d%29%29\|= 1, it returns the largest element. But … what happens if p=1/2 ?

well that’s obvious, it’s the median!

( :stuck_out_tongue: )

One of my friends used to complain to me about how the docs for define-syntax-rule
asks him to read the docs for syntax-rules
, and the docs for syntax-rules
asks him to read the docs for syntax-case
.

@sorawee I think the docs are reasonably good if you manage to get to this page in the Guide https://docs.racket-lang.org/guide/pattern-macros.html#%28part._define-syntax_and_syntax-rules%29.

I’m guessing your friend was bouncing around links in the Reference section https://docs.racket-lang.org/reference/stx-patterns.html#%28form._%28%28lib._racket%2Fprivate%2Fstxcase-scheme..rkt%29._syntax-rules%29%29

Totally agreed!

Maybe more of those Reference items could/should get margin-note
links to the Guide.

Having a Guide vs Reference division is very helpful but there is a downside, too.

Manually adding margin-notes to every possible Reference item is pretty error-prone and tedious. I wonder if there could be a way to do the reverse — when writing a Guide topic, provide a list of identifiers that would automatically get margin-notes back to the Guide topic.

waves hands vaguely

@popa.bogdanp Deta question if i may …. i may have missed it, but does deta have a way of expressing relationships ?


The issue contains an example.

Are there any major problems in trying to port a PLT Scheme package, circa 2004 when the filenames ended in .ss, into a Racket 7.6 code base?

Not usually. A little work is needed iIf set-car! and set-cdr! are used.

Is it a publically available package?

I dug up Pedro Pinto’s integration of .net 1.1 in PLT Scheme 209 and it seems (to me) to be of great value to try and get working with Racket and thw .net 4.x framework.

I guess it complicates things that .net has evolved too.

thanks :smile:

I expect that .net changes are much more work to deal with than Racket changes.

Hello there, I’m reading “The Racket Guide” online and I have a little suggestion that if you can make the code easier to copy, it will be much easier for beginners to go through. :slightly_smiling_face:
For example, just like Wolfram Language’s tutorial, if you hover your mouse over a code snippet, it will appear a little bubble. If you click that bubble, it copies the code to the clipboard. https://www.wolfram.com/language/fast-introduction-for-programmers/en/interactive-usage/