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

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

[elpa] externals/dash 81ef1ef 055/316: Replace string-to-int with string


From: ELPA Syncer
Subject: [elpa] externals/dash 81ef1ef 055/316: Replace string-to-int with string-to-number (#216)
Date: Mon, 15 Feb 2021 15:57:24 -0500 (EST)

branch: externals/dash
commit 81ef1efa63590db02351cd52d2953717bde8dd00
Author: holomorph <mvoteiza@udel.edu>
Commit: Matus Goljer <dota.keys@gmail.com>

    Replace string-to-int with string-to-number (#216)
    
    string-to-int was declared obsolete in Emacs 22.1, and has been removed
    for the eventual 26.1 release.
---
 dev/examples.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/examples.el b/dev/examples.el
index 092e57e..7487292 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -1149,10 +1149,10 @@ new list."
     (defexamples -prodfn
       (funcall (-prodfn '1+ '1- 'int-to-string) '(1 2 3)) => '(2 1 "3")
       (-map (-prodfn '1+ '1-) '((1 2) (3 4) (5 6) (7 8))) => '((2 1) (4 3) (6 
5) (8 7))
-      (apply '+ (funcall (-prodfn 'length 'string-to-int) '((1 2 3) "15"))) => 
18
+      (apply '+ (funcall (-prodfn 'length 'string-to-number) '((1 2 3) "15"))) 
=> 18
       (let ((f '1+)
             (g '1-)
-            (ff 'string-to-int)
+            (ff 'string-to-number)
             (gg 'length)
             (input '(1 2))
             (input2 "foo")



reply via email to

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