Hi,

>   (define my-fun (lambda (lst) ...))
> 
> and I want to make sure that every odd element is a symbol and every
> even element is a string.

the best I could come up with is

  (: my-fun ((list-of (pair symbol string)) --> string))
  (define my-fun (lambda (lst) ...))

Unfortunately a little bit unwieldy on the client side

  (my-fun '((a . "a")(b . "b") ... )))

Martin

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to