Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlucena committed Nov 14, 2023
1 parent 654ab4c commit a039973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions funcional/README.md
Expand Up @@ -5,7 +5,7 @@ sort: 80
# Programação Funcional

### Valores (constantes)
````ruby
````portugol
nome = "potigol"
````

Expand All @@ -30,7 +30,7 @@ escreva x(4)
````

### "list comprehension"
````ruby
````portugol
y = para i de 1 até 10,
j de i + 1 até 10 gere
i+j
Expand All @@ -54,7 +54,7 @@ escreva suc(4)
````

### Recursão em cauda otimizada
````scala
````portugol
h(a, cont: Inteiro): Inteiro = escolha a
caso 0 => cont
caso n => h(a-1, cont+1)
Expand All @@ -63,7 +63,7 @@ escreva h(1000,0)
````

### Casamento de Padrões
````scala
````portugol
# QuickSort
quicksort(num: Lista[Inteiro]): Lista[Inteiro] =
escolha num
Expand Down

0 comments on commit a039973

Please sign in to comment.