On Mon, Apr 20, 2020 at 6:50 PM Jon Zeppieri wrote:
> There's no trick to it:
>
> #lang racket/base
>
> (require racket/generic)
>
> (define-generics foo
> (foo-do foo x))
>
> (struct thing (x)
> #:methods gen:foo
> [(define (foo-do f x)
> (thing x))])
>
>
> On Mon, Apr 20, 2020 at 6:3
There's no trick to it:
#lang racket/base
(require racket/generic)
(define-generics foo
(foo-do foo x))
(struct thing (x)
#:methods gen:foo
[(define (foo-do f x)
(thing x))])
On Mon, Apr 20, 2020 at 6:32 PM Kevin Forchione wrote:
>
> Hi guys,
> How do you return an instance of the
2 matches
Mail list logo