rl_encode
Encode a string with run-length encoding or decode RLE-encoded text to restore the original string.
Instructions
Run-length encode or decode a string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input string to encode or RLE-encoded string to decode | |
| decode | No | If true, decode RLE input (default false) |