Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Abstract list operations and signatures - racket-lang

Natural -> (listof X) - build-list

(listof X) -> (listof X) - filter

(listof X) -> (listof Y) - map

(listof X) -> Boolean - andmap

(listof X) -> Boolean - ormap

Y (listof X) -> Y - foldr

Y (listof X) -> Y - foldl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment