Re: [racket-users] Chaperone of immutable hash

2016-02-14 Thread Gustavo Massaccesi
Thanks to both. I searched by mistake "make-chaperone-hash" instead of "chaperone-hash", so I didn't find it. Gustavo On Sat, Feb 13, 2016 at 7:11 PM, Stephen Chang wrote: > I added similar basic tests here. > > https://github.com/racket/racket/blob/master/pkgs/racket-test-core/tests/racket/hash

Re: [racket-users] Chaperone of immutable hash

2016-02-13 Thread Stephen Chang
I added similar basic tests here. https://github.com/racket/racket/blob/master/pkgs/racket-test-core/tests/racket/hash.rktl On Feb 13, 2016 4:12 PM, "Robby Findler" wrote: > I think this is what you want? > > (chaperone-hash > (hash) > (λ (h key) (values key (λ (h key val) val))) > (λ (h key

Re: [racket-users] Chaperone of immutable hash

2016-02-13 Thread Robby Findler
I think this is what you want? (chaperone-hash (hash) (λ (h key) (values key (λ (h key val) val))) (λ (h key val) (values key val)) (λ (h key) key) (λ (h key) key) (λ (hash) 'okay) (λ (hash key) key)) On Sat, Feb 13, 2016 at 3:02 PM, Gustavo Massaccesi wrote: > I want to make a test wi

[racket-users] Chaperone of immutable hash

2016-02-13 Thread Gustavo Massaccesi
I want to make a test with a chaperone of an immutable hash, but the signature of make-chaperone-hash has too many parts. Do anyone have an example of use of make-chaperone-hash. If possible, the chaperone that does nothing, only forward the values. Gustavo -- You received this message because