[Utils] Minor simplification
This commit is contained in:
parent
a2c759e431
commit
3a51420a7c
|
@ -182,8 +182,7 @@ major mode MODE."
|
||||||
(defun db/ascii-to-hex (ascii-string)
|
(defun db/ascii-to-hex (ascii-string)
|
||||||
"Convert ASCII-STRING to its hexadecimal representation."
|
"Convert ASCII-STRING to its hexadecimal representation."
|
||||||
(interactive "sString (ascii): ")
|
(interactive "sString (ascii): ")
|
||||||
(->> (string-to-list ascii-string) ; redundant
|
(->> (--map (format "%2X" it) ascii-string)
|
||||||
(--map (format "%2X" it))
|
|
||||||
(apply #'concat)
|
(apply #'concat)
|
||||||
message))
|
message))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue