--- name: const_func kind: function lang: go domain: core version: "1.0.0" purity: pure signature: "func Const[T, U any](value T) func(U) T" description: "Devuelve una funcion que siempre retorna el valor dado, ignorando su argumento." tags: [functional, generic, const, pendiente-usar] uses_functions: [] uses_types: [] returns: [] returns_optional: false error_type: "" imports: [] params: - name: value desc: "valor constante a retornar siempre" output: "función que ignora su argumento y siempre retorna el valor constante" tested: false tests: [] test_file_path: "" file_path: "functions/core/const_func.go" --- ## Ejemplo ```go always42 := Const[int, string](42) result := always42("ignored") // 42 ``` ## Notas Funcion pura generica. Implementacion en devfactory/core.