summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNic Ferier <nic@ferrier.me.uk>2013-06-18 12:12:05 +0100
committerNic Ferier <nic@ferrier.me.uk>2013-06-18 12:12:05 +0100
commit100ec3d037b9c8cc5245489ace6e58dfcac5fa68 (patch)
treea3ec7ae152158a1cb03cccad25eae039d9eed76a
parent0f049361b88630df6e501bb6100f0b8355024da7 (diff)
really simply kvacons makes alists from plist style function calls, bump the version
-rw-r--r--kv.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/kv.el b/kv.el
index 49362b2..f34c11b 100644
--- a/kv.el
+++ b/kv.el
@@ -4,7 +4,7 @@
;; Author: Nic Ferrier <nferrier@ferrier.me.uk>
;; Keywords: lisp
-;; Version: 0.0.16
+;; Version: 0.0.17
;; Maintainer: Nic Ferrier <nferrier@ferrier.me.uk>
;; Created: 7th September 2012
@@ -32,6 +32,7 @@
(eval-when-compile (require 'cl))
+
(defun kvalist->hash (alist &rest hash-table-args)
"Convert ALIST to a HASH.
@@ -184,6 +185,10 @@ expression is true."
(car pair)))))
(cdr pair))))
+(defun kvacons (&rest args)
+ "Make an alist from the plist style args."
+ (kvplist->alist args))
+
(defun keyword->symbol (keyword)
"A keyword is a symbol leading with a :.