I've been struggling with this for two hours. I want to have a nice 
overview of all links at the bottom of my document, so I defined a mutable 
hash table and made my link function add an entry to it every time it's 
called.
(define references (make-hash))
(define (link url text [class ""])
  (hash-set! references text url)
  `(a ((href ,url) (target "_blank") (class ,class)) ,text))
My problem now, is how do I actually display this thing?
I've turned the hash table into a list of strings:
from
'#hash(("Blender" . "https://www.blender.org/";)
       ("Racket" . "http://racket-lang.org/";))
with ◊(hash-map references (lambda (x y) (string-append x ": " y))), to
'("Racket: http://racket-lang.org/";
   "Blender: https://www.blender.org/";)

Now I want to feed each element of this list into a tag function, basically 
something like
◊(map p (hash-map references (lambda (x y) (string-append x ": " y))))
if it actually works. How do I make this work?

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to