Sha256: 1ca6addd69915dc52e2a35b1f79122d2fdd6c8cb6d30a6b1ae57cd3b9182d7c1
Contents?: true
Size: 473 Bytes
Versions: 395
Compression:
Stored size: 473 Bytes
Contents
;;; etl.el --- etl Exercise (exercism) ;;; Commentary: ;;; Code: (defun etl (data) (let ((rtn (make-hash-table))) (maphash (lambda (k v) (when (< k 0) (error "Unexpected key value %s" k)) (dolist (i v) (when (not (stringp i)) (error "Non string value found %s" i)) (puthash (downcase i) k rtn))) data) rtn)) (provide 'etl) ;;; etl.el ends here
Version data entries
395 entries across 395 versions & 1 rubygems