# Base.similar

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/projection.jl#L11
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-base-similar/

```
similar(::LibTmux.RowProjection, ::Type{T}, dims::NTuple{N, Int64} where N) where T

similar(::LibTmux.Selection, ::Type{T}, dims::NTuple{N, Int64} where N) where T

similar(
    ::LibTmux._FiniteCommandResult,
    ::Type{T},
    dims::NTuple{N, Int64} where N
) where T
```

## Methods

### `similar(::LibTmux.RowProjection, ::Type{T}, dims::NTuple{N, Int64} where N) where T`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/projection.jl#L11).

### `similar(::LibTmux.Selection, ::Type{T}, dims::NTuple{N, Int64} where N) where T`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/model.jl#L191).

### `Base.similar` (overload 3)

```julia
similar(
    ::LibTmux._FiniteCommandResult,
    ::Type{T},
    dims::NTuple{N, Int64} where N
) where T
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/batches.jl#L64).

## Parameters

- `argument1` (`LibTmux.RowProjection`) (for `Base.similar(argument1, argument2, dims) [overload 1]`)
- `argument2` (`Type{T}`)
- `dims` (`NTuple{N, Int64} where N`)
- `argument1` (`LibTmux.Selection`) (for `Base.similar(argument1, argument2, dims) [overload 2]`)
- `argument1` (`LibTmux._FiniteCommandResult`) (for `Base.similar(argument1, argument2, dims) [overload 3]`)
