# [`⊂`](https://bpl.fast.ai//glyphs/left-shoe.html) — Enclose / Partitioned enclose

Function. Keys: `Alt-z`. Hanzi: `包`. Ranks: [`∞`](https://bpl.fast.ai//glyphs/infinity.html) monadic, `1 ∞` dyadic

`⊂Y` is a scalar holding `Y`.

A one-item [bracket list](brackets.md), `[Y]`, is a vector, not a scalar. [`⊂`](https://bpl.fast.ai//glyphs/left-shoe.html) cannot enclose a function, because [`⊂`](https://bpl.fast.ai//glyphs/left-shoe.html) next to a function forms a train. To enclose a function, or a subject without parentheses on the left of a function, write [`ˢ`](../scripts.md#making-a-scalar) after it (`+ˢ`, `1ˢι1`).

```bpl
ρ⊂1 2 3            ⍝ ⍬ₓ
↑⊂1 2 3            ⍝ 1 2 3
⊂3 ≡ 3             ⍝ $f
```

With [axes](quad-colon.md), `⊂⍠K Y` encloses cells on axes `K`.

```bpl
⊂₁2 3ρι6ₓ          ⍝ [[0 1 2] [3 4 5]]ₓ
```

`N⊂Y` splits `Y` into partitions, blocks of major cells along the leading axis. `N` has one item for each major cell; a positive item starts a partition at its cell. Cells before the first positive item are left out.

```bpl
1 0 1 0⊂"abcd"     ⍝ "ab" "cd"
1 0 1⊂3 2ρι6ₓ       ⍝ [[0 1◇2 3] [4 5◇]]ₓ
```

An item `k` of `N` greater than 1 starts `k-1` extra empty partitions. A unit `N` applies to every major cell. `N⊂⍠K Y` partitions along axis `K` instead. `N⊂¹Y` partitions each row.

```bpl
1 0 1⊂₁2 3ρι6ₓ       ⍝ [[0 1◇3 4] [[2]◇[5]]]ₓ
1 0 1⊂¹(2 3ρι6ₓ)  ⍝ [[0 1] [2]◇[3 4] [5]]ₓ
```

See also [`⊆`](left-shoe-underbar.md).

## Inverse

`⊂⁻Y` is `↑Y`. `X⊂⁻Y` joins the partitions `Y`. Partitioning the result by `X` must give `Y` again, so `X` can't start with a zero.

```bpl
⊂⁻⊂1 2             ⍝ 1 2
1 0 1⊂⁻(1 2◇3)   ⍝ 1 2 3
```
