Next: , Previous: , Up: API Reference   [Contents][Index]


3.3 Optional Arguments

Grip procedures to process optional and keyword arguments. The module is loaded by entering the following:

(use-modules (grip optargs))

Procedures

strip-keyword-args
split-keyword-args

Procedures

Procedure: split-keyword-args keywords args

Returns two values:

a list containing the keyword arguments listed in keywords;

a list containing all other arguments.

Procedure: strip-keyword-args keywords args

Returns a list.

Remove the keyword arguments listed in keywords from args (internally, it calls split-keyword-args and returns the second received values).