Re: [racket-users] Re: stuck on a type problem

2020-07-25 Thread Nate Griswold
Thank you for the detailed reply! Please see below... On Sat, Jul 25, 2020 at 1:47 PM A Mauer-Oats wrote: > Problem 1: > > > But note i can't just type (λ (rng) (apply make-character rng)) into the > REPL, > > If you're using Typed Racket, you probably want type signatures in your > lambdas as

[racket-users] Re: “If you could have a wish granted, what would you like to see next in Racket?”

2020-07-25 Thread unlimitedscolobb
> but I would be surprised if it was on par with Racket's macro and type system, but who knows? I worked through the Julia user manual last year and my impression is that their macro system is probably less powerful than Racket's, but that their types are more powerful than Racket's. When

[racket-users] Re: stuck on a type problem

2020-07-25 Thread A Mauer-Oats
Problem 1: > But note i can't just type (λ (rng) (apply make-character rng)) into the REPL, If you're using Typed Racket, you probably want type signatures in your lambdas as well. In this case, you need to specify the type of `rng` (at least): ``` (λ ([rng : (List Integer Integer)]) (apply

[racket-users] stuck on a type problem

2020-07-25 Thread Nate Griswold
Hello. I am stuck on a probably simple type problem and was wondering if someone could help: I'll just give the actual functions im using: ``` (struct Character ([bytes16 : Bytes])) (define substr (make-bytes 128)) (: make-character (-> Integer Integer Character)) (define (make-character s e)

[racket-users] Re: “If you could have a wish granted, what would you like to see next in Racket?”

2020-07-25 Thread Marc Kaufmann
1. More how-to guides/good practice guides and discussions of some Racket specific features: continuations (especially for the web); Typed Racket; parameters/dynamic scope. Maybe macros, but I don't use them, so can't comment on whether I'd miss how-tos for it. I like "the 4 types of

[racket-users] Overiding the default preferences directory in Racket applications

2020-07-25 Thread Alex Harsanyi
If a Racket package uses `get-preference` and `(find-system-path 'pref-dir)` to store some data, is there a way for an application using that package to override the default preferences file used and the preferences directory returned by `(find-system-path 'pref-dir)`? The reason I ask this

[racket-users] Re: Removing duplicates from a list while still maintaining order in Dr. Racket.

2020-07-25 Thread Averell Aquino
I see that you asked regarding this in two other posts: https://groups.google.com/g/racket-users/c/TydSKVT5cqo (On which I provided a function for removing duplicates from the right) https://groups.google.com/g/racket-users/c/GMrf063HPwg You just have to follow the design recipe for beginning

[racket-users] Re: Making my own helper function

2020-07-25 Thread Averell Aquino
Creating examples will show you what you need to do. Check the examples below if I understood your intention. ; unique-right ; List -> List ; returns a list which has only the right most occurrences of the elements of lst (check-expect (unique-right '()) '()) (check-expect (unique-right (list