diff --git a/core/assocs/assocs-docs.factor b/core/assocs/assocs-docs.factor index 31df46f52c..2320768f59 100644 --- a/core/assocs/assocs-docs.factor +++ b/core/assocs/assocs-docs.factor @@ -473,7 +473,7 @@ HELP: map>assoc { $description "Applies the quotation to each element of the sequence, and collects the keys and values into a new assoc having the same type as " { $snippet "exemplar" } "." } ; HELP: map>alist -{ $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... key value ) } } { "assoc" "a new assoc" } } +{ $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... key value ) } } { "alist" "a new alist" } } { $description "Applies the quotation to each element of the sequence, and collects the keys and values into a new alist." } ; { map>assoc map>alist } related-words diff --git a/core/assocs/assocs.factor b/core/assocs/assocs.factor index eb64445798..9e82bc817b 100644 --- a/core/assocs/assocs.factor +++ b/core/assocs/assocs.factor @@ -201,7 +201,7 @@ M: assoc values [ nip ] { } assoc>map ; [ [ swapd set-at ] curry compose each ] keep ] if ; inline -: map>alist ( ... seq quot: ( ... elt -- ... key value ) exemplar -- ... alist ) +: map>alist ( ... seq quot: ( ... elt -- ... key value ) -- ... alist ) { } map>assoc ; inline : extract-keys ( seq assoc -- subassoc )