Sha256: a5e134671e582854174cec58e6cf9588ce474644940086eaf233ec696c1c75a9
Contents?: true
Size: 366 Bytes
Versions: 396
Compression:
Stored size: 366 Bytes
Contents
(defpackage #:anagram (:use #:common-lisp) (:export #:anagrams-for)) (in-package #:anagram) (defun anagram-equal (a b) (and (string-equal (sort (copy-seq a) #'char-lessp) (sort (copy-seq b) #'char-lessp)) (string-not-equal a b))) (defun anagrams-for (subject candidates) (remove-if-not #'(lambda (w) (anagram-equal w subject)) candidates))
Version data entries
396 entries across 396 versions & 1 rubygems