emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cl-extra.el : any support for bool-vector type?


From: Philippe Schnoebelen
Subject: cl-extra.el : any support for bool-vector type?
Date: Sun, 28 Jul 2019 08:59:12 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Was surprised to see that

    (cl-map 'vector #'not '(nil nil 2 3 nil 5 nil 7 nil nil nil 11))

is accepted by emacs while

    (cl-map 'bool-vector #'not '(nil nil 2 3 nil 5 nil 7 nil nil nil 11))

fails with (error "Unknown type bool-vector").

Turns out that cl-extra.el does not support bool-vectors. Is there any
reason for this? Not knowing of any, I've just added one line to
cl-coerce and now I can coerce to bool-vectors. See attachment. Let me
know if I'm being reckless ...  -phs

Attachment: patch-against-commit-77ee23d1ed
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]