|
|
|
@ -1,6 +1,8 @@ |
|
|
|
#+title: A collection of helper functions for Advent of Code |
|
|
|
#+title: A collection of helper functions for Advent of Code |
|
|
|
|
|
|
|
#+property: header-args :results none |
|
|
|
|
|
|
|
|
|
|
|
* Input manipulation |
|
|
|
* Input manipulation |
|
|
|
#+begin_src emacs-lisp :results none |
|
|
|
#+begin_src emacs-lisp |
|
|
|
(require 'dash) |
|
|
|
(require 'dash) |
|
|
|
(defun advent/replace-multiple-regex-buffer (regex-list) |
|
|
|
(defun advent/replace-multiple-regex-buffer (regex-list) |
|
|
|
"Takes REGEX-LIST as an alist ( regex . replacement ) |
|
|
|
"Takes REGEX-LIST as an alist ( regex . replacement ) |
|
|
|
|