# table.move

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/table.move
- **Çeviri tarihi:** 2025-09-08

```lua
table table.move( table sourceTbl, number from, number to, number dest, table destTbl = sourceTbl )
```

## Açıklama

Elemanları bir tablonun bir bölümünden, verilen bir tablonun başka bir bölümüne taşır. Bu, kaynak tablodaki elemanları birden çok atama ile hedef tabloya atamaya benzer.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **sourceTbl**: Elemanların taşınacağı kaynak tablo.
2. [number](https://gmod.tr/wiki/number) **from**: Elemanların taşınacağı kaynak aralığının başlangıç indeksi.
3. [number](https://gmod.tr/wiki/number) **to**: Elemanların taşınacağı kaynak aralığının bitiş indeksi.
4. [number](https://gmod.tr/wiki/number) **dest**: Taşınan elemanların ekleneceği hedef tablodaki indeks.
5. [table](https://gmod.tr/wiki/table) **destTbl** = sourceTbl: Elemanların taşınacağı hedef tablo. Varsayılan olarak bu, kaynak tablo ile aynıdır.

## Döndürülen Değerler

1. [table](https://gmod.tr/wiki/table): Değiştirilmiş hedef tablo.

### Örnek

Bunun nasıl kullanılabileceğine dair bir örnek.

```lua
local source = { "a", "b", "c", "d", "e" }
local dest = { "f", "g", "h", "i", "j" }

table.move( source, 3, 5, 1, dest )

PrintTable( source )
print( "\n" )
PrintTable( dest )
```

**Output:**

```lua
1	=	a
2	=	b
3	=	c
4	=	d
5	=	e

1	=	c
2	=	d
3	=	e
4	=	i
5	=	j
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/table.move
