summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-02-28 08:24:42 -0500
committerKjetil Orbekk <kj@orbekk.com>2024-02-28 08:24:42 -0500
commit7d46ba2a59ea19b3cea4dd515f40d2e4c1c79535 (patch)
tree6efca317d4c08431b3efdbf372103515caa35824
parent427b7ab5a06213fe2edf3842e970b7ecc7be3781 (diff)
add birthday generatorHEADmaster
-rw-r--r--happy-birthday.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/happy-birthday.el b/happy-birthday.el
index fb96a6c..9e6a9fd 100644
--- a/happy-birthday.el
+++ b/happy-birthday.el
@@ -21,3 +21,16 @@
() () () () () () () () () () () () () () () ! ()
() () () () () () () () () () () () () () ! ! () ()
() () () () () !?)
+
+
+(mapcan
+ (lambda (w)
+ (let (r)
+ (push '!? r)
+ (mapc (lambda (c)
+ (cl-loop for i below (- c ?a)
+ do (push '() r))
+ (push '! r))
+ w)
+ r))
+ (reverse (string-split "happy birthday seb")))