Skip to main content

28 docs tagged with "functions"

View all tags

Anonymous Functions

Learn about Anonymous Functions, their syntax across different programming languages, and typical use cases.

Arguments vs. Parameters

Understand the clear conceptual difference between parameters and arguments with examples and comparison tables.

Callback Functions

Learn about Callback Functions, the difference between synchronous and asynchronous callbacks, and how to handle asynchronous operations.

Default Parameters

Learn about Default Parameters, their syntax, usage rules, and important gotchas across programming languages.

First-Class Functions

Learn about First-Class Functions, the criteria that make functions first-class citizens, and examples across major programming languages.

Function Call

Learn how to invoke functions in various programming languages.

Function Composition

Learn about function composition and how to combine multiple functions into one in C++ and Python.

Function Currying

Learn about function currying and how it enables the transformation of functions for better modularity and reusability.

Function Expressions

Learn about Function Expressions, their syntax, usage, and key differences from Function Declarations.

Function Memoization

Learn about function memoization, a technique to optimize performance by caching results of expensive function calls.

Function Overloading

Understand the concept of function overloading in various programming languages.

Function Return

Learn about how functions return values in various programming languages.

Function Scope

Learn about variable scope within functions and how it affects accessibility.

Functions

Learn about functions and how to create and use them in JavaScript, Java, Python, and C++. Understand function declarations, parameters, return values, and best practices.

Functions in C++

Master functions in C++. Learn function declaration, definition, prototypes, parameters passing mechanics (pass-by-value vs pass-by-reference), and the anatomy of execution memory.

Functions in Go

Understand how to define and use functions, including multiple return values in Go.

Functions in php

Functions in php are blocks of reusable code. Learn how to create, call, and use parameters, return values, and built-in functions.

Higher-Order Functions

Learn about Higher-Order Functions (HOFs), how they accept or return other functions, and explore standard examples like map, filter, and reduce.

Methods

Comprehensive guide to methods in C++: declaration, invocation, parameters, return types, instance vs static, and best practices.

Pure vs. Impure Functions

Learn about the differences between Pure and Impure functions, the concept of side effects, and why purity is important in functional programming.