content/flux/v0/stdlib/strings/isletter.md
strings.isLetter() tests if a single character string is a letter (a-z, A-Z).
(v: string) => bool
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Single-character string to test.
import "strings"
data
|> filter(fn: (r) => strings.isLetter(v: r._value))
{{< expand-wrapper >}} {{% expand "View example input and output" %}}
| _time | _value | *tag |
|---|---|---|
| 2021-01-01T00:00:00Z | s | t1 |
| 2021-01-01T00:00:10Z | n | t1 |
| 2021-01-01T00:00:20Z | 4 | t1 |
| 2021-01-01T00:00:30Z | 4 | t1 |
| 2021-01-01T00:00:40Z | e | t1 |
| 2021-01-01T00:00:50Z | y | t1 |
| _time | _value | *tag |
|---|---|---|
| 2021-01-01T00:00:00Z | a | t2 |
| 2021-01-01T00:00:10Z | p | t2 |
| 2021-01-01T00:00:20Z | 4 | t2 |
| 2021-01-01T00:00:30Z | t | t2 |
| 2021-01-01T00:00:40Z | 7 | t2 |
| 2021-01-01T00:00:50Z | v | t2 |
| _time | _value | *tag |
|---|---|---|
| 2021-01-01T00:00:00Z | s | t1 |
| 2021-01-01T00:00:10Z | n | t1 |
| 2021-01-01T00:00:40Z | e | t1 |
| 2021-01-01T00:00:50Z | y | t1 |
| _time | _value | *tag |
|---|---|---|
| 2021-01-01T00:00:00Z | a | t2 |
| 2021-01-01T00:00:10Z | p | t2 |
| 2021-01-01T00:00:30Z | t | t2 |
| 2021-01-01T00:00:50Z | v | t2 |
{{% /expand %}} {{< /expand-wrapper >}}