Add some useful utilities and an example

This commit is contained in:
Ed Langley
2018-08-18 12:55:10 -07:00
parent d01cd3026e
commit 289289e708
2 changed files with 92 additions and 2 deletions

23
README.org Normal file
View File

@ -0,0 +1,23 @@
* Intro
This library provides a language for expressing data manipulations as
the composition of more primitive operations.
#+BEGIN_SRC lisp
DATA-LENS> (funcall (on (compress-runs :collector 'combine-matching-lists)
(alexandria:compose
(over (juxt (element 0)
'identity))
(sorted 'string<)))
'("January" "February" "March" "April"
"May" "June" "July" "August"
"September" "October" "November" "December"))
#| ==> ((#\A "April" "August")
(#\D "December")
(#\F "February")
(#\J "January" "July" "June")
(#\M "March" "May")
(#\N "November")
(#\O "October")
(#\S "September")) |#
#+END_SRC