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
> 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
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
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)
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
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
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
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
8 matches
Mail list logo