The data-lens Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The data-lens Reference Manual

This is the data-lens Reference Manual, generated automatically by Declt version 2.4 patchlevel 1 "Will Decker" on Mon Apr 08 13:53:57 2019 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

* Intro

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

#+BEGIN_SRC lisp
  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")) |#
#+END_SRC


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 data-lens

Author

Edward Langley <edward@elangley.org>

License

MIT

Description

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

Dependencies
Source

data-lens.asd (file)

Component

lens.lisp (file)


Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 data-lens.asd

Location

data-lens.asd

Systems

data-lens (system)


Previous: , Up: Lisp files   [Contents][Index]

3.1.2 data-lens/lens.lisp

Parent

data-lens (system)

Location

lens.lisp

Packages

data-lens

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 data-lens

Source

lens.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Macros

Macro: applying FUN &rest ARGS
Package

data-lens

Source

lens.lisp (file)

Macro: defun-ct NAME (&rest ARGS) &body BODY
Package

data-lens

Source

lens.lisp (file)

Macro: let-fn (&rest BINDINGS) &body BODY
Package

data-lens

Source

lens.lisp (file)

Macro: shortcut NAME FUNCTION &body BOUND-ARGS
Package

data-lens

Source

lens.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: applicable-when FUN TEST
Package

data-lens

Source

lens.lisp (file)

Function: combine-matching-lists &key TEST &allow-other-keys
Package

data-lens

Source

lens.lisp (file)

Function: compress-runs &key COLLECTOR TEST KEY
Package

data-lens

Source

lens.lisp (file)

Function: cumsum &key ADD-FUN KEY COMBINE ZERO
Package

data-lens

Source

lens.lisp (file)

Function: denest &key RESULT-TYPE
Package

data-lens

Source

lens.lisp (file)

Function: derive DIFF-FUN &key KEY
Package

data-lens

Source

lens.lisp (file)

Function: element NUM
Package

data-lens

Source

lens.lisp (file)

Function: exclude PRED
Package

data-lens

Source

lens.lisp (file)

Function: include PRED
Package

data-lens

Source

lens.lisp (file)

Function: juxt FUN1 &rest R
Package

data-lens

Source

lens.lisp (file)

Function: key KEY
Package

data-lens

Source

lens.lisp (file)

Function: key-transform FUN KEY-GET KEY-SET
Package

data-lens

Source

lens.lisp (file)

Function: maximizing RELATION MEASURE
Package

data-lens

Source

lens.lisp (file)

Function: of-length LEN
Package

data-lens

Source

lens.lisp (file)

Function: of-max-length LEN
Package

data-lens

Source

lens.lisp (file)

Function: of-min-length LEN
Package

data-lens

Source

lens.lisp (file)

Function: on FUN KEY
Package

data-lens

Source

lens.lisp (file)

Function: over FUN &key RESULT-TYPE
Package

data-lens

Source

lens.lisp (file)

Function: pick SELECTOR
Package

data-lens

Source

lens.lisp (file)

Function: regex-match REGEX
Package

data-lens

Source

lens.lisp (file)

Function: slice START &optional END
Package

data-lens

Source

lens.lisp (file)

Function: sorted COMPARATOR &rest R &key KEY
Package

data-lens

Source

lens.lisp (file)

Function: transform-elt ELT FUN
Package

data-lens

Source

lens.lisp (file)

Function: transform-head FUN
Package

data-lens

Source

lens.lisp (file)

Function: transform-tail FUN
Package

data-lens

Source

lens.lisp (file)

Function: zipping RESULT-TYPE &key FILL-VALUE
Package

data-lens

Source

lens.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Generic functions

Generic Function: extract-key MAP KEY
Package

data-lens

Source

lens.lisp (file)

Methods
Method: extract-key (MAP hash-table) KEY
Method: extract-key (MAP list) KEY

Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Macros

Macro: updatef PLACE FUN &rest ARGS
Package

data-lens

Source

lens.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: =>> FUN1 FUN2
Package

data-lens

Source

lens.lisp (file)

Function: cons-new &key TEST KEY
Package

data-lens

Source

lens.lisp (file)

Function: deduplicate &optional TEST
Package

data-lens

Source

lens.lisp (file)

Function: filler LENGTH1 LENGTH2 FILL-VALUE
Package

data-lens

Source

lens.lisp (file)

Function: matching-list-reducer TEST ACC NEXT
Package

data-lens

Source

lens.lisp (file)

Function: update THING FUN &rest ARGS
Package

data-lens

Source

lens.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   D   F   L  
Index Entry  Section

D
data-lens.asd: The data-lens<dot>asd file
data-lens/lens.lisp: The data-lens/lens<dot>lisp file

F
File, Lisp, data-lens.asd: The data-lens<dot>asd file
File, Lisp, data-lens/lens.lisp: The data-lens/lens<dot>lisp file

L
Lisp File, data-lens.asd: The data-lens<dot>asd file
Lisp File, data-lens/lens.lisp: The data-lens/lens<dot>lisp file

Jump to:   D   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   =  
A   C   D   E   F   G   I   J   K   L   M   O   P   R   S   T   U   Z  
Index Entry  Section

=
=>>: Internal functions

A
applicable-when: Exported functions
applying: Exported macros

C
combine-matching-lists: Exported functions
compress-runs: Exported functions
cons-new: Internal functions
cumsum: Exported functions

D
deduplicate: Internal functions
defun-ct: Exported macros
denest: Exported functions
derive: Exported functions

E
element: Exported functions
exclude: Exported functions
extract-key: Exported generic functions
extract-key: Exported generic functions
extract-key: Exported generic functions

F
filler: Internal functions
Function, =>>: Internal functions
Function, applicable-when: Exported functions
Function, combine-matching-lists: Exported functions
Function, compress-runs: Exported functions
Function, cons-new: Internal functions
Function, cumsum: Exported functions
Function, deduplicate: Internal functions
Function, denest: Exported functions
Function, derive: Exported functions
Function, element: Exported functions
Function, exclude: Exported functions
Function, filler: Internal functions
Function, include: Exported functions
Function, juxt: Exported functions
Function, key: Exported functions
Function, key-transform: Exported functions
Function, matching-list-reducer: Internal functions
Function, maximizing: Exported functions
Function, of-length: Exported functions
Function, of-max-length: Exported functions
Function, of-min-length: Exported functions
Function, on: Exported functions
Function, over: Exported functions
Function, pick: Exported functions
Function, regex-match: Exported functions
Function, slice: Exported functions
Function, sorted: Exported functions
Function, transform-elt: Exported functions
Function, transform-head: Exported functions
Function, transform-tail: Exported functions
Function, update: Internal functions
Function, zipping: Exported functions

G
Generic Function, extract-key: Exported generic functions

I
include: Exported functions

J
juxt: Exported functions

K
key: Exported functions
key-transform: Exported functions

L
let-fn: Exported macros

M
Macro, applying: Exported macros
Macro, defun-ct: Exported macros
Macro, let-fn: Exported macros
Macro, shortcut: Exported macros
Macro, updatef: Internal macros
matching-list-reducer: Internal functions
maximizing: Exported functions
Method, extract-key: Exported generic functions
Method, extract-key: Exported generic functions

O
of-length: Exported functions
of-max-length: Exported functions
of-min-length: Exported functions
on: Exported functions
over: Exported functions

P
pick: Exported functions

R
regex-match: Exported functions

S
shortcut: Exported macros
slice: Exported functions
sorted: Exported functions

T
transform-elt: Exported functions
transform-head: Exported functions
transform-tail: Exported functions

U
update: Internal functions
updatef: Internal macros

Z
zipping: Exported functions

Jump to:   =  
A   C   D   E   F   G   I   J   K   L   M   O   P   R   S   T   U   Z  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   D   P   S  
Index Entry  Section

D
data-lens: The data-lens system
data-lens: The data-lens package

P
Package, data-lens: The data-lens package

S
System, data-lens: The data-lens system

Jump to:   D   P   S