Skip to content

Commit df9898e

Browse files
committed
Agregar ideas a tipos de datos algebraicos
1 parent a2b6b53 commit df9898e

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

public/textos/es/docs/next/indice.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ temas:
6565
ruta: genericos
6666

6767
- titulo: Tipos de Datos Algebraicos
68-
ruta: tda
69-
temas:
70-
- titulo: Covariantes
71-
ruta: covariantes
72-
- titulo: Registros
73-
ruta: registros
68+
ruta: tipos-de-datos-algebraicos
7469

7570
- titulo: Pattern Matching
7671
ruta: pattern-matching
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Tipos de datos algebraicos
2+
3+
> Experimental
4+
5+
## Tuplas
6+
7+
Ver la sección de [Tuplas](/#/docs/next/bases/tuplas)
8+
9+
## Estructuras
10+
11+
```
12+
struct Persona = {
13+
variable
14+
constante
15+
}
16+
```
17+
18+
## Union
19+
20+
```
21+
union Arbol =
22+
| Nodo
23+
| Hoja
24+
```

src/components/codigo/kanAHTML.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export palabrasClave = ("let const rec if elif else match when is in for while "
3636
"instanceof new return super switch this throw try typeof var void while with yield " +
3737
"enum implements package public interface private static protected await " +
3838
"abstract boolean byte char double final float goto int long native short " +
39-
"synchronized throws transient volatile from where init").split " "
39+
"synchronized throws transient volatile from where init struct union").split " "
4040
export funcionesClave = "constructor get set".split " "
4141
export std = "Lista impr imprf console".split " "
4242

0 commit comments

Comments
 (0)