get-optional

[syntax] get-optional args default

Gauche: shorthand notation of let-optionals* when there's only one optional arguments.

  (define (proc arg . opts)
    (list arg (get-optional opts #f)))
 
  (proc 0) => (0 #f)
  (proc 0 1) => (0 1)