emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/dash 6d0a8d6 225/439: Add Version and Package-Requires


From: Phillip Lord
Subject: [elpa] externals/dash 6d0a8d6 225/439: Add Version and Package-Requires to files #45
Date: Tue, 04 Aug 2015 20:28:16 +0000

branch: externals/dash
commit 6d0a8d6707b8783c0cc9a755890383e6a9d67863
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Add Version and Package-Requires to files #45
---
 dash-functional.el |    2 ++
 dash.el            |   15 ++++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/dash-functional.el b/dash-functional.el
index 1530758..29bed2b 100644
--- a/dash-functional.el
+++ b/dash-functional.el
@@ -4,6 +4,8 @@
 
 ;; Authors: Matus Goljer <address@hidden>
 ;;          Magnar Sveen <address@hidden>
+;; Version: 1.8.0
+;; Package-Requires: ((dash "1.8.0") (emacs "24"))
 ;; Keywords: lisp functions combinators
 
 ;; This program is free software; you can redistribute it and/or modify
diff --git a/dash.el b/dash.el
index e70736d..26712b1 100644
--- a/dash.el
+++ b/dash.el
@@ -3,6 +3,7 @@
 ;; Copyright (C) 2012 Magnar Sveen
 
 ;; Author: Magnar Sveen <address@hidden>
+;; Version: 1.8.0
 ;; Keywords: lists
 
 ;; This program is free software; you can redistribute it and/or modify
@@ -26,13 +27,6 @@
 
 ;;; Code:
 
-(defalias '-first-item 'car
-  "Returns the first item of LIST, or nil on an empty list.")
-
-(defun -last-item (list)
-  "Returns the first item of LIST, or nil on an empty list."
-  (car (last list)))
-
 (defmacro !cons (car cdr)
   "Destructive: Sets CDR to the cons of CAR and CDR."
   `(setq ,cdr (cons ,car ,cdr)))
@@ -307,6 +301,13 @@ To get the first item in the list no questions asked, use 
`car'."
   "Return the last x in LIST where (PRED x) is non-nil, else nil."
   (--last (funcall pred it) list))
 
+(defalias '-first-item 'car
+  "Returns the first item of LIST, or nil on an empty list.")
+
+(defun -last-item (list)
+  "Returns the first item of LIST, or nil on an empty list."
+  (car (last list)))
+
 (defmacro --count (pred list)
   "Anaphoric form of `-count'."
   (let ((r (make-symbol "result")))



reply via email to

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