/usr/share/common-lisp/source/kmrcl/hash.lisp is in cl-kmrcl 1.106-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: hash.lisp
;;;; Purpose: Hash functions for KMRCL package
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002-2011 by Kevin M. Rosenberg
;;;;
;;;; KMRCL users are granted the rights to distribute and use this software
;;;; as governed by the terms of the Lisp Lesser GNU Public License
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
(in-package #:kmrcl)
;;; hashs
(defun print-hash (h &key (stream *standard-output*)
key-transform-fn value-transform-fn
(prefix "") (divider " -> ") (terminator "~%"))
(maphash #'(lambda (k v)
(format stream "~A~S~A~S"
prefix
(if key-transform-fn
(funcall key-transform-fn k)
k)
divider
(if value-transform-fn
(funcall value-transform-fn v)
v))
(when terminator (format stream terminator)))
h)
h)
|