Skip to content

fiddlerwoaroof/data-lens

Repository files navigation

Intro

This library provides a language for expressing data manipulations as the composition of more primitive operations.

DATA-LENS> (funcall (on (alexandria:compose
                         (over (transform-tail (over (slice 1))))
                         (compress-runs :collector 'combine-matching-lists))
                        (alexandria:compose 
                         (over (juxt (element 0)
                                     'identity))
                         (sorted 'char<
                                 :key (element 0))))
                    '("January" "February" "March" "April"
                      "May" "June" "July" "August"
                      "September" "October" "November" "December"))
#| ==> ((#\A "pril" "ugust")
        (#\D "ecember")
        (#\F "ebruary")
        (#\J "anuary" "une" "uly")
        (#\M "arch" "ay")
        (#\N "ovember")
        (#\O "ctober")
        (#\S "eptember")) |#