The trivial-update Reference Manual

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

The trivial-update Reference Manual

This is the trivial-update Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 06:04:44 2022 GMT+0.

Table of Contents


1 Introduction

trivial-update

License MIT Build Status Quicklisp

Easily change place with any supplied function. This library is most useful in cases when you have do deal with places that have complex structure.

Installation

Copy files of this library in any place where ASDF can find them. Then you can use it in system definitions and ASDF will take care of the rest.

Via Quicklisp (recommended):

(ql:quickload "trivial-update")

Description

update place fn &rest args &environment env

Replace value at place by applying function fn to it. Value at place is used as the first argument for the given function fn, other optional arguments args will be used to fill the rest of the argument list. Parameter env is set by Common Lisp implementation during macro expansion.

If value at place should not be put as first argument of given function, use partial application to pad some arguments. Combination of partial application and &rest arguments will give you the opportunity to pass old value at place on any position in the argument list.

Remember that keyword parameters are just pairs of normal arguments.

License

Copyright © 2014–2018 Mark Karpov

Distributed under MIT Licens


2 Systems

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


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

2.1 trivial-update

tools for easy modification of places with any given function

Author

Mark Karpov

License

MIT

Version

0.1.0

Source

trivial-update.asd.

Child Component

trivial-update.lisp (file).


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


3.1.1 trivial-update/trivial-update.asd

Source

trivial-update.asd.

Parent Component

trivial-update (system).

ASDF Systems

trivial-update.


3.1.2 trivial-update/trivial-update.lisp

Source

trivial-update.asd.

Parent Component

trivial-update (system).

Packages

trivial-update.

Public Interface

update (macro).


4 Packages

Packages are listed by definition order.


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

4.1 trivial-update

Source

trivial-update.lisp.

Use List

common-lisp.

Public Interface

update (macro).


5 Definitions

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


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

5.1 Public Interface


5.1.1 Macros

Macro: update (place fn &rest args)

Replace value at PLACE by applying function FN to it. Value at PLACE is used as the first argument for given function FN, other optional arguments ARGS will be used to fill the rest of the argument list. Parameter ENV is set by Common Lisp implementation during macro expansion.

If value at PLACE should not be put as first argument of given function, use partial application to pad some arguments. Combination of currying and &REST arguments will give you opportunity to pass old value at PLACE on any position in the argument list.

Remember that keyword parameters are just pairs of normal arguments.

Package

trivial-update.

Source

trivial-update.lisp.


Appendix A Indexes


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

A.1 Concepts


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

A.2 Functions

Jump to:   M   U  
Index Entry  Section

M
Macro, update: Public macros

U
update: Public macros

Jump to:   M   U  

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

A.3 Variables