Ruta de aprendizaje

Fundamentos de Rust

De tu primer programa a variables, tipos, condiciones, bucles, cadenas, vectores y funciones, con un reto después de cada tema.

17 lecciones · 31 retos

1 Primeros pasos 5 lecciones

  1. Lección 2 retos Hello World and Program Structure Write your first Rust program and learn what fn main and println! do.
  2. Lección 2 retos Variables and Mutability Declare variables with let, allow changes with mut, and use constants and shadowing.
  3. Lección 2 retos Data Types Work with integers, floating-point numbers, booleans and characters, and convert between them.
  4. Lección 2 retos Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
  5. Lección 2 retos Reading User Input Read a line from the keyboard and turn it into a number safely.

2 Decisiones 2 lecciones

  1. Lección 2 retos Conditions with if and else Choose what runs with if, else if and else, and use if as an expression.
  2. Lección 1 reto FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.

3 Bucles 2 lecciones

  1. Lección 2 retos Loops: for, while and loop Repeat code with for over a range, while with a condition, and loop with break.
  2. Lección 2 retos Prime Numbers Check whether a number is prime and list the primes up to 30.

4 Cadenas y texto 2 lecciones

  1. Lección 2 retos Strings: String and &str Create, grow, search and split text with Rust's two string types.
  2. Lección 1 reto Reverse a String Reverse the characters of a string and the words of a sentence.

5 Colecciones 3 lecciones

  1. Lección 2 retos Tuples and Arrays Group values with tuples and store a fixed number of items in an array.
  2. Lección 2 retos Vectors Store a growing list of values in a Vec and read items safely.
  3. Lección 2 retos Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.

6 Funciones 2 lecciones

  1. Lección 2 retos Functions and Return Values Define functions with typed parameters and return values.
  2. Lección 2 retos Binary Search Find a value in a sorted slice by halving the search range.

7 Objetos y clases 1 lección

  1. Lección 1 reto Structs Group related values into your own type with named fields.
Continúa con: Fundamentos de programación