---
name: flip
kind: function
lang: go
domain: core
version: "1.0.0"
purity: pure
signature: "func Flip[A, B, C any](f func(A, B) C) func(B, A) C"
description: "Intercambia el orden de los argumentos de una funcion de dos parametros."
tags: [functional, generic, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
  - name: f
    desc: "función de dos argumentos a invertir: (A, B) -> C"
output: "función con argumentos intercambiados: (B, A) -> C"
tested: false
tests: []
test_file_path: ""
file_path: "functions/core/flip.go"
---

## Ejemplo

```go
sub := func(a, b int) int { return a - b }
flipped := Flip(sub)
result := flipped(3, 10) // 7 (10 - 3)
```

## Notas

Funcion pura generica. Implementacion en devfactory/core.
