From 3cba71b3ac1fb9b6081bc5b3d5ce2a03e9ac2b22 Mon Sep 17 00:00:00 2001 From: Lucas Dondo <59975541+LucasDondo@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:54:02 -0300 Subject: [PATCH] Enhanced readability of tex (#6703) --- .../content/101-programming-fundamentals/102-functions.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/datastructures-and-algorithms/content/101-programming-fundamentals/102-functions.md b/src/data/roadmaps/datastructures-and-algorithms/content/101-programming-fundamentals/102-functions.md index 2810e74b4..0f0e4d9ce 100644 --- a/src/data/roadmaps/datastructures-and-algorithms/content/101-programming-fundamentals/102-functions.md +++ b/src/data/roadmaps/datastructures-and-algorithms/content/101-programming-fundamentals/102-functions.md @@ -1,3 +1,7 @@ # Functions -Functions in programming are named sections of a program that perform a specific task. They allow us to write a piece of code once and reuse it in different places throughout the program, making our code more modular and easier to maintain. Functions often take in input, do something with it, and return output. Functions can be categorized into four main types: built-in functions (like `print()`, provided by the programming language), user-defined functions (written by the user for a specific use case), anonymous functions (also known as lambda functions, which are not declared using the standard `def` keyword), and higher-order functions (functions that take other functions as arguments or return a function). \ No newline at end of file +Functions in programming are named sections of a program that perform a specific task. They allow us to write a piece of code once and reuse it in different places throughout the program, making our code more modular and easier to maintain. Functions often take in input, do something with it, and return output. Functions can be categorized into four main types: +- **Built-in** functions: provided by the programming language, like `print()` in Python. +- **User-defined** functions: written by the user for a specific use case. +- **Anonymous** functions: also known as lambda functions, which are not declared using the standard keyword (`def` in Python, for example). +- **Higher-order** functions: functions that take other functions as arguments or return a function.