How do I handle an unspecified number of parameters in Scheme?
In Scheme you can use the dot notation for declaring a procedure that receives a variable number of arguments (also known as varargs or variadic function): (define (procedure . args) …) Inside procedure, args will be a list with the zero or more arguments passed; call it like this: (procedure “a” “b” “c”) As pointed … Read more