Last active
August 29, 2015 14:17
-
-
Save b4284/11ff0d170d163b916f54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Guile 2.0.11 | |
(use-modules (srfi srfi-1)) | |
(let ((a (map (lambda (x) (char-upcase (string-ref x 0))) | |
'("John" "Marry" "Carson" "Zed"))) | |
(b (map integer->char (iota 26 65)))) | |
(map (lambda (x) (cons x (count (lambda (y) (char=? x y)) a))) b)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment