sema-docs 1.25.0

Canonical structured documentation for Sema builtins/special forms; powers LSP hover/completion and REPL apropos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
---
name: "mapcar"
module: "lists"
section: "Transformation"
params: [{ name: f, type: function }, { name: seq, type: "list | vector" }]
returns: list
---

Apply `f` to each element of `seq`, returning a list of results. Alias of `map`.

```sema
(mapcar (fn (x) (* x x)) '(1 2 3))   ; => (1 4 9)
```