data-lens

2024-10-12

Utilities for building data transformations from composable functions, modeled on lenses and transducers

Upstream URL

github.com/fiddlerwoaroof/data-lens

Author

Edward Langley <el-cl@elangley.org>

License

Apache v2
README

1Intro

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")) |#

Dependencies (5)

  • alexandria
  • cl-ppcre
  • fiveam
  • fset
  • string-case

Dependents (0)

    • GitHub
    • Quicklisp