# Lua · LDoc

Real LDoc HTML output from the checked-in lua fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

> Source: https://appgram.github.io/docsy/versions/current/fr/lua-sdk  
> Language: lua  
> Symbols: 3 across 1 categories

## Categories

- [Functions](#functions) — 3 items

## Functions

### `greet`  <sub>function</sub>

Greet a reader.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `string` | ✓ | Reader name. |

**Returns** — `string` — string A friendly greeting.

```lua
greet (name)
```

**Example**

```lua
local greeter = require 'greeter'
print(greeter.greet('Docsy'))
```

---

### `greet_checked`  <sub>function</sub>

Reject an empty reader name.

**Errors**

- `error` — When name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `string` | ✓ | Reader name. |

**Returns** — `string` — string A validated greeting.

```lua
greet_checked (name)
```

**Example**

```lua
greeter.greet_checked('Ada')
```

---

### `greet_many`  <sub>function</sub>

Greet several readers while preserving input order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `table` | ✓ | Reader names. |

| `separator` | `string` |  | Separator between greetings. ( default ' / ') |

**Returns** — `string` — string Joined greetings.

```lua
greet_many (names[, separator=' / '])
```

**Example**

```lua
greeter.greet_many({'Ada', 'Linus'}, ' / ')
```
