[plt-scheme] Scribble question

From: Damir Ćavar (damir.cavar at gmail.com)
Date: Thu Feb 25 03:02:15 EST 2010

Hi there,

is there a standardized way to document in Scribble the R6RS type of
case-lambda optional parameters? Here is a concrete example:

(define token-sequence->ngrams
   (case-lambda
     [(tokens)   (token-sequence->ngrams tokens 2)]
     [(tokens n) (token-sequence->ngrams
                     tokens n
                     (make-hashtable equal-hash equal?))]
     [(tokens n ngrams)
      ...

How would you document such cases of optional parameters, with @defproc,
or in an alternative way? I can't find any example anywhere on the net?

I'd appreciate some hint or advice!

Thanks a lot and
best wishes
DC


Posted on the users mailing list.