Hi there,
I'm just getting started rebuilding my personal website using Pollen and
so far I really love it—but I'm a beginner at Racket. I've hit one snag,
which I'm wondering if someone can help explain.
I have been writing some code to generate TeX code (which I then pipe
off to a renderer, and then embed as an image); but there's something
that perplexes me in my TeX generation functions:
◊(define (infer concl . premises)
(string-append "\\frac{" (apply string-append (add-between premises
"\\quad ")) "}{" concl "}"))
Now, what I would expect is for ◊(infer "a" "b" "c") to reduce to
"\frac{b\qquad c}{a}" or something like that. Instead, I get the
following error:
string-append: contract violation
expected: string?
given: 'add-between
argument position: 1st
other arguments...:
'("b" "c")
"\\quad"
Somehow something is not being evaluated! How is that possible?
The really strange thing is that if I run this code in the Racket repl,
it exhibits the correct behavior. Only within Pollen does it seem to do
this mysterious thing. Any ideas?
Thanks,
Jon
--
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.