[Gllug] What is a hash?

Nix nix at esperi.demon.co.uk
Thu Jul 26 20:17:50 UTC 2001


On Thu, 26 Jul 2001, Gordon Joly gibbered:
>>
>>Exactly so. A silly name, they should have been called `maps', IMHO,
>>because that's what they *do*.
> 
> Indeedy. In Lisp there is "mapcar".

And `map' and `mapc' and `maplist' for mapping over different kinds of
things. Hell, there's `map' in perl, too, but the data structure they
call a `hash' is a mapping from keys to values. `Map' is a much better
name than `hash', which, after all, is just an implementation technique
for a map.

-- 
`It's all about bossing computers around. Users have to say "please".
Programmers get to say "do what I want NOW or the hard disk gets it".'
                        -- Richard Heathfield on the nature of programming

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list