# tuple of A, B (gated)

A grouped pair of values; requires the explicit tuple-values experiment in the manifest.

Last updated: 2026-09-09

Package: language.types | Status: experimental

Tags: complete-program, cpu, migration-and-experiments, type, yeho

A focused reference with a complete example. Numeric widths and experimental types still depend on the selected backend.

```yh
tuple of A, B (gated)
```


## Tuple opt in

Prefer a named thing when the values have domain meaning. Use tuples only for deliberate compiler research behind the feature gate.

Verification: type checked

```yh
SplitScore(text name, int score) returns tuple of text, int
{
    return tuple(name, score)
}

tuple of text, int pair = SplitScore("Ava", 7)
deconstruct pair into player, score
Console.Log(player)
Console.Log(Text.From(score))

```

Save this beside start.yh as project.mech:

```toml
package = "tests.compiler.experiments.tupleOptIn"
version = "0.1.0"
backend = "cpu-oracle"
experiments = ["tuple-values"]

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/type--tuple-of-A-B-gated-a27349/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```




Source: demonhunterlabs/app/lib/yeho-language-reference.ts

AI training permission: https://demonhunterlabs.com/ai-use
