[plt-scheme] Project Euler was Hash Table implementation
Noel Welsh
noelwelsh at gmail.com
Fri Aug 3 17:40:17 EDT 2007
On 8/3/07, Mark Engelberg <mark.engelberg at gmail.com> wrote:
> Scheme satisfies the first criterion, but not the second and third.
> Of course, you can extend Scheme however you would like, but there is
> no "off-the-shelf" solution for comprehension manipulation of streams.
> The syntax for vectors and hash tables are also more verbose than
> their counterparts in other languages.
The stream SRFI is pretty good. Also note you can do fun little hacks
with literal syntax and quasiquote:
> `#(,(+ 1 2) 4)
#2(3 4)
> (define h #hash((a . (+ 1 2))))
> (hash-table-get h 'a)
(+ 1 2)
[So note you can quasiquote and unquote a literal vector but not a literal hash]
N.
More information about the plt-scheme
mailing list