The Racket repository
![]() Document and adjust `hash-clear!', `hash-clear', and `hash-empty?'. Also, add `hash-copy-clear'. The clear operations are constant-time for a non-impersonated hash table, otherwise they always remove keys one-by-one to trigger the impersonator's interpositions. The `hash-clear' operation works only on immutable hash tables, in contrast to the original implementation. The new `hash-copy-clear' works on both immutable and mutable hash tables. The "copy" in its name is meant to suggest a difference with `hash-clear', even on immutable hash tables: any chaperone on the input is not on the outpue. Change `set-clear' to be like `hash-clear', and add `set-copy-clear'. (Changes are in consultation with Carl.) |
||
---|---|---|
native-pkgs@f367c0c4b0 | ||
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
INSTALL.txt | ||
Makefile | ||
README.txt |
This is the source code for the main Racket distribution. See "INSTALL.txt" for information on building Racket. License ------- Racket Copyright (c) 2010-2013 PLT Design Inc. Racket is distributed under the GNU Lesser General Public License (LGPL). This means that you can link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular means that you must release the source code for the modified software. See doc/release-notes/COPYING_LESSER.txt for more information.