summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorMatus Goljer <dota.keys@gmail.com>2014-07-25 15:44:03 +0200
committerMatus Goljer <dota.keys@gmail.com>2014-07-25 15:44:03 +0200
commitaa9333fa9f4fae7e6569cb98944bae99c79c36e4 (patch)
treef3ccc8090ae93d6d90e3c11492c544c227a3d403 /s.el
parentfec417a3fffcce8903c4eb3f415e3f5dcbd7348a (diff)
Add s-wrap
Diffstat (limited to 's.el')
-rw-r--r--s.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/s.el b/s.el
index b4e46ac..136469f 100644
--- a/s.el
+++ b/s.el
@@ -102,6 +102,10 @@ See also `s-split'."
"Concatenate S and SUFFIX."
(concat s suffix))
+(defun s-wrap (left right s)
+ "Wrap S in strings LEFT and RIGHT."
+ (concat left s right))
+
(defun s-repeat (num s)
"Make a string of S repeated NUM times."
(let (ss)