The bindings provided by `#lang lazy` aren't precisely spelled out,
but the documentation says: "The language provides bindings that are
equivalent to most of the racket/base and racket/list libraries."
`match` isn't in `racket/base`, so you'll need to require it, just
like if you started with `#lang racket/base`.

Sam

On Fri, Dec 8, 2017 at 5:13 PM, Zelphir Kaltstahl
<zelphirkaltst...@gmail.com> wrote:
> Thank you for this quick and easy solution, this help!
>
> I am still curious however, why it is in such a way, that so many other
> forms are available, but `match` must be required. I could imagine that
> `match` is a complex thing under the covers, but I am not sure whether that
> is the reason or something else.
>
> Or maybe there is even a general reason for multiple forms not being
> available in Lazy Racket?
> If there is no general reason, maybe we can create a list of not available
> ones and put it in the Lazy Racket docs, including ways, if there are any,
> to get the forms available when using Lazy Racket.
>
> On Friday, December 8, 2017 at 10:29:02 PM UTC+1, Ben Greenman wrote:
>>
>> You can `(require racket/match)`. Make sure to force the match expression!
>>
>> #lang lazy
>> (require racket/match)
>>
>> (match (! (string->symbol "a"))
>>   ['a 'a]
>>   ['b 'b])
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to