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

Version Path
trackler-2.2.1.180 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.179 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.178 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.177 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.176 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.175 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.174 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.173 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.172 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.171 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.170 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.169 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.167 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.166 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.165 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.164 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.163 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.162 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.161 tracks/elisp/exercises/etl/example.el
trackler-2.2.1.160 tracks/elisp/exercises/etl/example.el