[racket] what is this thing: '#(struct:foo 3 4) ?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Sep 10 12:23:30 EDT 2010

It is a vector (of length 3 with a symbol and two numbers inside).

Robby

On Fri, Sep 10, 2010 at 11:21 AM, John Clements
<clements at brinckerhoff.org> wrote:
> I've spent long enough with the docs on this not to feel too embarrassed about this question: what kind of value is produced by
>
> '#(struct:foo 3 4)
>
> (N.B. the leading quote)
>
> ... and how can I extract its values?
>
> The problem is that I'm trying to use "write" and "read" on the built-in "date" structure. The problem is that since date is #:transparent but not #:prefab, reading it back in doesn't produce a date structure, but rather one of these quoted thingies.  I'm guessing there's a simple way to, e.g., transform it into a list, but (having been through the docs for 'write' and for structures), I'm not sure where to find  out what it is.
>
> John
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.