You forgot some parentheses:
 
(match user
  [(hash-table ('name name) ('job (hash-table ('type type) ('id id)))) ; <---
   (displayln name)
   (displayln type)
   (displayln id)])
 
Jos

  _____  

From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On 
Behalf Of David Storrs
Sent: 19 March 2018 16:38
To: Racket Users
Subject: [racket-users] Using match to decompose a nested hash


-- 
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