# table.Flip

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

```lua
table table.Flip( table input )
```

## Açıklama

Bir tablonun içindeki her bir elemanın anahtar-değer çiftlerini ters çevirir, böylece her değer anahtar ve her anahtar da değer olur.

> **UYARI:** Bu fonksiyonu kullanırken dikkatli olun, çünkü bir Lua tablosu aynı anahtarın birden fazla örneğini içeremez. Bu nedenle, yinelenen değerlere sahip tablolarda bu fonksiyonu kullanırken veri kaybı yaşanabilir.
>
> ```lua
> local test = { test = 1, test2 = 1 }
> local f = table.Flip( test )
> PrintTable( f )
> -- Çıktısı "1	=	test2" olur
> ```

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **input**: Elemanlarının ters çevrileceği tablo.

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

1. [table](https://gmod.tr/wiki/table): Ters çevrilmiş tablo.

### Örnek

```lua
local productIngredients = { "Cocoa Mass", "Cocoa Butter", "Vanilla", "Cocoa Solids: 70% min" }

local flipped = table.Flip( productIngredients )

PrintTable( flipped )
```

**Çıktı:**

```lua
Cocoa Butter	=	2
Cocoa Mass	=	1
Cocoa Solids: 70% min	=	4
Vanilla	=	3
```

- [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.Flip
