sema-docs 1.23.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
14
---
name: "some?"
module: "lists"
section: "Searching & Testing"
params: [{ name: pred, type: function }, { name: seq, type: "list | vector" }]
returns: bool
---

Return `#t` if `pred` returns truthy for at least one element of `seq`. Alias of `any` (and of `any?`).

```sema
(some? even? '(1 3 4))   ; => #t
(some? even? '(1 3 5))   ; => #f
```