utils: Add documentation to procedures

pull/1/head
Luis Guilherme Coelho 2024-01-03 02:08:38 -03:00
parent a365ad9734
commit 1526639961
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@
`(,@(map (cut cons <> association) keys) ...)) `(,@(map (cut cons <> association) keys) ...))
(define (flat-map proc . lsts) (define (flat-map proc . lsts)
"Returns a list containg every other application of PROC to a list where the
first element comes from the first list, the second element from the second
list, up to the last list."
(match lsts (match lsts
((head-lst) (map proc head-lst)) ((head-lst) (map proc head-lst))
((head-lst . tail-lsts) ((head-lst . tail-lsts)