ammoc: Evaluate all arguments in order, but return the first.

Description Usage Arguments Value Note Author(s)

Description

Useful in where you want to clean up after a computation but but return the result of the computation, as in ammoc(x, rm(x)), or ammoc(readLines(file), close(file)). It's the reverse of the C comma operator. There is an infix alias, %\'%, (i.e., inverted comma; use whichever you feel a worse pun.)

Usage

1
2
3

Arguments

...

any number of arguments.

Value

The first argument.

Note

In most Lisps, this is called prog1.

Author(s)

Peter Meilstrup


crowding/vadr documentation built on May 14, 2019, 11:33 a.m.