Just the stdlib `map`, but it's all ordinary library code. You can easily add your own rewrite rules.