- Executores
-
Aprender
Aprender Python Exemplos executáveis, NumPy, pandas e mais Aprender IARedes neurais, ML e LLMs do zero Aprender C e C++ Ponteiros, memória, STL e C++ moderno Aprender C#Fundamentos, POO, LINQ, async e exercícios .NET Aprender MatplotlibGráficos de linha, barras, dispersão e pizza com visualizadores Aprender RustOwnership, traits, tratamento de erros e threads Aprender GoSlices, interfaces, goroutines e channels Algoritmos em Python Busca, ordenação, recursão e visualizações O(n) Algoritmos em C e C++ Compare implementações em C e C++ Programação para crianças Aprenda a programar brincando!
- DesafiosNovo
- Para professoresNovo
- Atualizações
- Me pague um café
Structs, enums e traits
Modele dados com structs e enums, use pattern matching, trate Option e Result e compartilhe comportamento com traits e genéricos.
- Lição 1 desafio Structs Group related values into your own type with named fields.
- Lição 2 desafios Methods and impl Blocks Attach functions to a struct with impl, including constructors.
- Lição 1 desafio Enums Define a type that is one of several variants, each with its own data.
- Lição 2 desafios Pattern Matching with match Compare a value against patterns with match, guards and if let.
- Lição 1 desafio Temperature Converter Convert between Celsius and Fahrenheit with an enum.
- Lição 2 desafios Option: Values That May Be Missing Represent a missing value with Option instead of null.
- Lição 2 desafios Error Handling with Result Return errors as values with Result and pass them on with the ? operator.
- Lição 1 desafio Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
- Lição 1 desafio Traits Describe shared behavior with a trait and implement it for different types.
- Lição 1 desafio Generics Write one function or struct that works with many types.