clj-pgp.util

Internal utility functions used by other namespaces.

arg-coll

(arg-coll args)

Returns a collection from the arguments provided. If args is a non-collection value, a single-element collection containing args is returned.

arg-map

(arg-map args)

Takes a sequence of args and returns a map. If only one argument is given and it is a map, it is retured directly. Otherwise the seq of args is treated as keyword args and returned as a map.

arg-seq

(arg-seq args)

Takes a sequence of args and returns a seq. If only one argument is given and it is sequential, it is retured directly. Otherwise the seq of args is returned. Returns nil for empty args.