#lang racket ;;; code examples for functions with a variable number of arguments ;;; functions with a variable number of arguments (define (squid a b . c) (display a) (newline) (display b) (newline) (display c) (newline)) (define (average . lst) (if (null? lst) (error "can't take the average of an empty list") (/ (apply + lst) (length lst))))