Mastering Functional Programming in R for Data Science: map, apply, and reduce

Welcome to DataScienceForBeginners!
Ready to unlock the power of R and elevate your data science skills? This is your gateway to mastering functional programming techniques. Dive into our comprehensive guide and discover how map, apply, and reduce can revolutionize your data analysis workflow. Are you prepared to write cleaner, more efficient, and ultimately more insightful code? Let's begin exploring Functional Programming Techniques in R!
- Introduction to Functional Programming in R for Data Science
- Understanding the map Family of Functions in R
- Exploring the apply Family of Functions in R
- Harnessing the Power of reduce in R
- Functional Programming Techniques: Combining map, apply, and reduce
- Best Practices for Functional Programming in R
- Case Studies: Functional Programming in Action
- Conclusion: Functional Programming in R for Efficient Data Science
-
Frequently Asked Questions
- What is functional programming and why is it relevant to data science in R?
- What are the key functional programming functions in R discussed in the article?
- How can map be used in R for data analysis tasks?
- When should I use apply instead of map in R?
- What is reduce and how can it simplify data aggregation in R?
- Final Reflection: Embracing Functional Elegance in R
- Unlock Your Data Wizardry: Start Applying Functional R Now!
Introduction to Functional Programming in R for Data Science
Functional Programming: A Data Scientist's Perspective
In the realm of data science, efficiency and clarity are paramount. As data scientists, we often grapple with complex datasets, intricate transformations, and the need to derive meaningful insights swiftly. Functional programming, a paradigm that emphasizes immutability and pure functions, offers a powerful toolkit to tackle these challenges within the R environment. Unlike imperative programming, which focuses on how to achieve a result step-by-step, functional programming concentrates on what needs to be computed, leading to more concise, readable, and less error-prone code. For data scientists, this translates to faster development cycles, easier debugging, and more robust data analysis workflows.
Functional programming in R is not about abandoning your existing knowledge but rather augmenting it with a new set of techniques that can significantly enhance your data manipulation and analysis capabilities. It’s about thinking in terms of functions as first-class citizens – entities that can be passed as arguments to other functions, returned as values, and assigned to variables.
This approach promotes modularity and reusability, key aspects for managing complex data science projects. By adopting functional programming techniques, data scientists can express complex operations in a more declarative style, making their code easier to understand and maintain, especially when collaborating in teams or revisiting code after a period of time.
Advantages of Functional Programming in R for Data Analysis
Adopting functional programming techniques in R brings a multitude of advantages to your data analysis workflow. One of the primary benefits is enhanced code readability. Functional code tends to be more declarative, focusing on what needs to be done rather than how. This leads to code that is easier to understand and follow, especially for complex data transformations. Imagine transforming multiple columns in a data frame – with functional programming, you can achieve this with concise and expressive code, reducing the cognitive load compared to traditional loop-based approaches.
Furthermore, functional programming promotes code reusability. By encapsulating operations within pure functions – functions that always produce the same output for the same input and have no side effects – you create modular building blocks that can be easily reused across different parts of your analysis or even in different projects.
This modularity significantly reduces code duplication and promotes a more maintainable codebase. Functional programming also naturally lends itself to parallelization, as pure functions can be executed independently without affecting each other, opening up opportunities for performance optimization when dealing with large datasets, a common scenario in modern data science.
Core Principles of Functional Programming in R
At the heart of functional programming in R lie several core principles that guide the development of efficient and maintainable data analysis code. Immutability is a cornerstone principle, meaning that data structures are not modified after creation. Instead, operations create new data structures, leaving the original data untouched.
This eliminates a common source of bugs in imperative programming where unintended side effects can arise from modifying data in place. In R, this often translates to working with copies of data frames rather than directly modifying them, which can seem less efficient at first glance but drastically reduces the likelihood of errors.
Another crucial principle is the use of pure functions. As mentioned earlier, pure functions are functions that depend only on their inputs and produce the same output for the same input every time, without causing any side effects. This predictability makes code easier to reason about and test. Functional programming also emphasizes composition, the idea of building complex operations by combining simpler functions. In R, this is often achieved through function composition and piping, allowing you to chain together a sequence of operations in a clear and logical manner. Finally, higher-order functions, functions that can take other functions as arguments or return functions as results, are fundamental to functional programming. Functions like map, apply, and reduce in R are prime examples of higher-order functions, enabling powerful and concise data manipulation.
Understanding the map Family of Functions in R
map() for Element-wise Operations on Lists and Vectors
The map family of functions, primarily from the purrr package in R, is a cornerstone of functional programming for data scientists. The base function, map(), is designed for applying a function to each element of a list or vector, returning a list as the result. Imagine you have a list of numerical vectors, and you want to calculate the mean of each vector. Using a traditional loop would involve iterating through the list and applying the mean() function in each iteration. However, with map(), you can achieve this much more concisely.
For example, if you have my_list <- list(a = 1:5, b = 10:20, c = 25:30), and you want to calculate the mean of each vector, you would simply use map(my_list, mean). This single line of code iterates through each element of my_list (which are vectors a, b, and c), applies the mean() function to each, and returns a list containing the results. This element-wise operation is not only more readable but often more efficient than traditional loops in R, especially when dealing with large datasets, making map() an indispensable tool for data scientists.
map_dbl(), map_chr(), map_lgl(): Type-Specific Mapping in R
While map() is versatile, it always returns a list, which might not always be the desired output. The purrr package provides type-specific variants of map() that return vectors of specific types, making them even more convenient for data analysis. map_dbl() returns a numeric vector (doubles), map_chr() returns a character vector, and map_lgl() returns a logical vector. These functions are particularly useful when you know the expected output type and want to work with vectors directly instead of lists.
Consider again our my_list example. If we want to get the means as a numeric vector instead of a list, we can use map_dbl(my_list, mean). This will return a numeric vector containing the means of vectors a, b, and c. Similarly, if you were working with a list of strings and wanted to get the length of each string as an integer vector, you would use map_int(my_list_of_strings, nchar). These type-specific map functions streamline your code and make it easier to work with the results in subsequent data analysis steps.
Working with Data Frames using map() Functions
The map family is not limited to lists and vectors; it seamlessly integrates with data frames, making it incredibly useful for data manipulation in R. You can apply map functions to columns of a data frame, treating each column as an element to be processed. This is particularly powerful for performing operations across multiple columns simultaneously, such as standardizing or cleaning data.
Imagine you have a data frame df with columns col1, col2, and col3, and you want to calculate the standard deviation of each column. You can use map_dbl(df, sd) to achieve this in a single line of code. This applies the sd() function to each column of df and returns a numeric vector containing the standard deviations. Furthermore, you can combine map with functions that operate on data frames, allowing for complex data transformations. For instance, you can use map(df, function(x) ifelse(is.na(x), 0, x)) to replace missing values in all columns of df with 0. This ability to apply functions column-wise makes map a highly efficient tool for data cleaning and preprocessing.
Data Cleaning and Transformation with map in R
Data cleaning and transformation are crucial steps in any data science project, and the map family in R significantly simplifies these tasks. Whether it’s standardizing variables, handling missing values, or applying complex transformations, map offers a concise and efficient approach. Consider a scenario where you have a data frame with multiple columns containing dates in different formats. You can use map along with functions like lubridate::parse_date_time() to consistently parse all date columns into a uniform format.
For example, if you have a data frame date_df with columns date_col1, date_col2, and date_col3 containing dates in various formats, you can use map(date_df, lubridate::parse_date_time, orders = c("Ymd", "mdy", "dmy")) to parse all date columns using the specified date formats. This applies the parse_date_time function to each column, attempting to parse dates in "Ymd", "mdy", and "dmy" formats. This demonstrates how map can be used for complex data cleaning operations across multiple columns, significantly reducing the amount of code and improving readability compared to traditional loop-based methods.
Exploring the apply Family of Functions in R
apply() for Matrices and Arrays
The apply family of functions is a fundamental part of base R and offers powerful tools for applying functions over the margins of arrays and matrices. The apply() function itself is particularly designed for matrices and arrays. It allows you to apply a function to the rows or columns (or both, in higher dimensions) of these data structures. This is incredibly useful for tasks like calculating row or column sums, means, or applying more complex transformations across rows or columns.
For instance, if you have a matrix mat <- matrix(1:20, nrow = 5, ncol = 4), and you want to calculate the sum of each row, you would use apply(mat, 1, sum). The 1 indicates that the function sum should be applied to rows (margin 1). Similarly, apply(mat, 2, mean) would calculate the mean of each column (margin 2). apply() is versatile as it can handle matrices and arrays of any dimension, making it a robust tool for numerical computations in data science.
lapply() and sapply(): Apply Functions to Lists in R
While map from purrr is often preferred for its consistency and type-specific variants, base R also provides lapply() and sapply() for applying functions to lists. lapply() (list apply) applies a function to each element of a list and always returns a list as the result, similar to map(). sapply() (simplified apply) is a user-friendly version of lapply(). It attempts to simplify the output to a vector or matrix if possible, making it more convenient when you expect a simpler output structure.
Consider again our list my_list <- list(a = 1:5, b = 10:20, c = 25:30). lapply(my_list, mean) will return a list of means, just like map(my_list, mean). However, sapply(my_list, mean) will return a numeric vector of means, simplifying the output. While sapply() can be convenient, it's important to be aware that its simplification behavior can sometimes be unpredictable or lead to unexpected output types. For more consistent and predictable behavior, especially in complex data science workflows, lapply() or the map family are often preferred.
mapply(): Multivariate Apply for Complex Data Manipulation
mapply() (multivariate apply) is another powerful function in the apply family that extends the concept of applying a function to multiple input lists or vectors simultaneously. While lapply() and sapply() apply a function to each element of a single list, mapply() can take multiple lists (or vectors) as input and apply a function element-wise across these inputs. This is particularly useful when you need to perform operations that depend on corresponding elements from multiple data structures.
For example, suppose you have two lists, list1 <- list(1, 2, 3) and list2 <- list(10, 20, 30), and you want to add corresponding elements from both lists. You can use mapply(function(x, y) x + y, list1, list2). This applies the anonymous function function(x, y) x + y to the first elements of list1 and list2 (1 and 10), then to the second elements (2 and 20), and so on. mapply() is highly flexible and can handle functions with multiple arguments, making it a valuable tool for complex data manipulations involving multiple related data structures.
apply vs. map in R for Data Science Tasks
While both the apply and map families serve the purpose of applying functions iteratively, they have distinct strengths and are often used in different contexts within data science in R. apply() is primarily designed for matrices and arrays, operating across rows, columns, or higher dimensions. It excels at numerical computations on these structured data types and is a core function in base R.
On the other hand, the map family (from purrr) is more geared towards lists, vectors, and data frames, offering a more consistent and type-safe approach. map functions are generally considered more readable and easier to use for data manipulation tasks, especially when working with data frames and lists of various data types. For tasks involving matrix operations or calculations across array margins, apply() remains highly relevant and efficient. For general data cleaning, transformation, and manipulation tasks, especially when working with data frames and lists, the map family often provides a more streamlined and intuitive functional programming experience. In many modern data science workflows, map is often preferred for its clarity and integration with the tidyverse ecosystem.
Harnessing the Power of reduce in R
reduce() Explained
The reduce function, primarily from the purrr package, is a powerful functional programming tool for iteratively combining elements of a list or vector into a single value. Unlike map, which applies a function to each element individually, reduce applies a function cumulatively to the elements, effectively "reducing" the collection to a single result. This function is invaluable for tasks like summing all elements in a list, finding the maximum value, or concatenating strings.
Imagine you have a list of numbers numbers <- list(1, 2, 3, 4, 5) and you want to calculate their sum. Using a traditional loop would involve initializing a sum variable and iterating through the list, adding each element to the sum. With reduce(), you can achieve this more concisely: reduce(numbers, + ). Here, reduce() takes the list numbers and the binary operator + as arguments. It starts by applying + to the first two elements (1 and 2), then applies + to the result (3) and the next element (3), and so on, accumulating the sum until it reaches the end of the list. The final result is the sum of all elements.
Combining Data with reduce()
reduce() is not limited to simple numerical operations; it can be used to combine various types of data in functional programming techniques. You can use reduce() to merge lists, concatenate strings, or even combine data frames row-wise or column-wise. For instance, if you have a list of data frames dfs <- list(df1, df2, df3) with compatible structures, you can use reduce(dfs, rbind) to combine them into a single data frame by row-binding.
Similarly, if you have a list of character vectors and you want to concatenate them into a single character vector, you can use reduce(list_of_char_vectors, c). reduce() provides a flexible way to combine data structures iteratively, offering a functional alternative to traditional looping and manual aggregation methods. This makes it particularly useful in data science workflows where you often need to aggregate or combine data from multiple sources or transformations.
Accumulating Results with reduce()
The essence of reduce() lies in its ability to accumulate results iteratively. This makes it ideal for scenarios where you need to build up a result step-by-step, processing elements of a list or vector sequentially. Consider the task of finding the longest string in a list of strings. You can use reduce() to compare strings pairwise and keep track of the longest string encountered so far.
For example, with strings <- list("apple", "banana", "kiwi", "grapefruit"), you can use reduce(strings, function(longest, current) if (nchar(current) > nchar(longest)) current else longest). This reduce operation starts with the first two strings ("apple" and "banana"), compares their lengths, and keeps the longer one ("banana"). Then, it compares "banana" with "kiwi", and so on, accumulating the longest string found so far. The final result will be "grapefruit". This demonstrates how reduce() can be used for more complex accumulation tasks beyond simple sums or concatenations, offering a powerful pattern for iterative data processing.
Applications of reduce() in Data Science
In data science, reduce() finds applications in various tasks where iterative aggregation or combination of data is required. One common application is in feature engineering, where you might want to combine multiple features into a single composite feature. For instance, if you have a list of feature vectors and you want to combine them into a single feature matrix using a specific aggregation function (like averaging or summing element-wise), reduce() can be used to perform this aggregation iteratively.
Another application is in building data pipelines where you might have a sequence of data transformations represented as a list of functions. You can use reduce() to compose these functions into a single composite function that applies all transformations in sequence. This function composition is a powerful functional programming technique for creating modular and reusable data processing pipelines. Furthermore, reduce() can be used in scenarios involving simulations or iterative algorithms where you need to accumulate results over multiple iterations, making it a versatile tool in the data scientist's functional programming arsenal.
Functional Programming Techniques: Combining map, apply, and reduce

Chaining Functions for Data Pipelines in R
One of the most powerful aspects of functional programming in R, particularly when using map, apply, and reduce, is the ability to chain functions together to create data pipelines. This chaining, often facilitated by the pipe operator %>% from the magrittr package (part of the tidyverse), allows you to express a sequence of data transformations in a clear and linear manner, significantly enhancing code readability and maintainability.
Imagine you want to perform several operations on a data frame: first filter rows based on a condition, then select specific columns, then group by another column, and finally calculate summary statistics. With function chaining, you can express this entire pipeline in a series of steps, each step being a function application. For example, using dplyr and purrr alongside the pipe operator, you might write:
data %>%
filter(column1 > 10) %>%
select(column2, column3) %>%
group_by(column2) %>%
summarise(mean_col3 = mean(column3)) %>%
map_dbl(mean) # Example using map in a pipeline
This code snippet demonstrates how functions are chained together using %>%, making the data flow explicit and easy to follow. Each line represents a distinct transformation step, making the code highly readable and easier to debug. Integrating map, apply, or reduce within these pipelines further enhances their functional programming capabilities.
Custom Functional Programming Functions in R
Beyond using pre-built functions like map, apply, and reduce, functional programming in R encourages the creation of custom functions tailored to specific data analysis tasks. Defining your own functions allows you to encapsulate complex logic into reusable units, promoting modularity and reducing code duplication. These custom functions can then be seamlessly integrated with map, apply, reduce, and function chaining to build sophisticated data processing workflows.
For example, you might create a custom function standardize_column <- function(col) (col - mean(col)) / sd(col) to standardize a numeric column. You can then use map(data_frame, standardize_column) to standardize all numeric columns in a data frame. Or, you might create a function clean_text <- function(text) text %>% tolower() %>% removePunctuation() %>% trimws() to clean text data, and apply it to all text columns using map. Creating and using custom functions is a core aspect of functional programming, allowing you to abstract away complex details and focus on the high-level logic of your data analysis.
Advanced Functional Programming Patterns
As you become more proficient in functional programming in R, you can explore advanced patterns that further enhance code expressiveness and efficiency. Function composition, the idea of combining multiple functions into a single function, is a powerful technique. In R, you can achieve function composition using the compose() function from purrr or by manually creating composite functions. This allows you to build complex transformations by piecing together simpler, reusable functions.
Currying, another advanced pattern, involves transforming a function that takes multiple arguments into a sequence of functions, each taking a single argument. While not as common in typical data science tasks in R, currying can be useful for creating specialized versions of functions or for function composition. Recursion, although less frequently used in data manipulation, is a fundamental functional programming concept where a function calls itself to solve smaller subproblems. Understanding these advanced patterns can significantly expand your functional programming toolkit and enable you to tackle more complex data analysis challenges in a functional style.
Best Practices for Functional Programming in R
Readable and Maintainable Code
Writing readable and maintainable code is paramount in any programming paradigm, and functional programming in R is no exception. One key practice is to keep functions small and focused on a single task. This enhances modularity and makes functions easier to understand, test, and reuse. Use descriptive function names that clearly indicate what the function does. Avoid side effects in your functions – strive to write pure functions that depend only on their inputs and produce predictable outputs.
When chaining functions, use the pipe operator %>% to create a clear and linear flow of data transformations. Comment your code appropriately, especially for complex custom functions or data pipelines. Follow consistent coding style guidelines (like those from the tidyverse style guide) to ensure code uniformity and readability across your projects. Readable and maintainable functional code not only makes your own work easier but also facilitates collaboration and ensures the long-term usability of your data science projects.
Optimizing Performance
While functional programming in R often promotes code clarity, performance optimization is still important, especially when dealing with large datasets. Be mindful of unnecessary data copying. Immutability, while beneficial for code correctness, can sometimes lead to creating copies of data structures. Optimize for performance by using vectorized operations whenever possible, as vectorized code is generally much faster than loop-based code in R. Profile your code to identify performance bottlenecks and focus optimization efforts on the most critical parts.
Consider using compiled code or packages like data.table for performance-critical operations when dealing with very large datasets. While map and apply functions are generally efficient, be aware of their overhead compared to highly optimized vectorized operations. Strive for a balance between code readability and performance. Often, clear and well-structured functional code is easier to optimize because its modularity makes it easier to pinpoint and address performance issues.
Avoiding Common Pitfalls
While functional programming offers numerous benefits, there are some common pitfalls to be aware of in R. One potential pitfall is overusing or misusing sapply(). As mentioned earlier, sapply()'s simplification behavior can be unpredictable and lead to unexpected output types. For more consistent and predictable behavior, prefer lapply() or the type-specific map functions. Be cautious of creating overly complex function chains that become difficult to understand or debug. Break down complex pipelines into smaller, more manageable functions.
Avoid excessive nesting of functions, which can also hinder readability. Be mindful of the performance implications of immutability, especially when working with very large datasets. While immutability is generally beneficial, in performance-critical sections, consider whether alternative approaches might be more efficient. Finally, remember that functional programming is a paradigm, not a dogma. There are situations where imperative or object-oriented approaches might be more appropriate or efficient. Choose the programming paradigm and techniques that best suit the specific task and context.
Case Studies: Functional Programming in Action
Case Study 1: Analyzing Customer Churn with Functional Programming
Let's consider a case study of analyzing customer churn using functional programming techniques in R. Suppose we have a dataset of customer information and their churn status. We want to perform several data cleaning, transformation, and analysis steps to understand the factors contributing to churn. Using functional programming, we can create a clear and efficient data pipeline.
First, we might use map to clean and preprocess individual columns, such as standardizing numerical features, encoding categorical variables, and handling missing values. Then, we can use dplyr and function chaining to filter customers based on certain criteria, group them by demographics, and calculate churn rates for different segments. We could further use map to apply statistical models (like logistic regression) to different customer segments to identify segment-specific churn drivers. Finally, we might use reduce to combine results from different segments into a consolidated report. This case study demonstrates how functional programming, with map, reduce, and function chaining, can be applied to build a structured and maintainable churn analysis workflow.
Case Study 2: Building a Recommendation System with Functional Programming
Another compelling application of functional programming in R is building recommendation systems. Consider a scenario where we want to build a collaborative filtering recommendation system. We might start with user-item interaction data (e.g., user ratings for movies). Functional programming techniques can streamline several steps in building such a system.
We could use map to preprocess user and item data, such as calculating user and item averages, normalizing ratings, and handling missing data. We can then use apply or map to calculate user-user or item-item similarities (e.g., cosine similarity). For generating recommendations, we can use map to iterate through users, predict ratings for unrated items based on similarity scores, and rank items for each user. reduce could be used to aggregate recommendations from different sources or to combine recommendation lists. Functional programming, with its emphasis on modularity and function composition, provides a clean and structured approach to building recommendation systems, making the code more readable, maintainable, and easier to extend.
Conclusion: Functional Programming in R for Efficient Data Science
Resources for Further Learning
Functional programming in R offers a powerful and elegant approach to data science, enhancing code readability, maintainability, and efficiency. Mastering techniques like map, apply, and reduce, and embracing functional programming principles can significantly elevate your data analysis skills. By adopting a functional style, you can write more concise, robust, and scalable code, making you a more effective and productive data scientist.
To further your journey in functional programming in R, consider exploring these resources:
- "Advanced R" by Hadley Wickham: This book provides a comprehensive guide to advanced R programming, including a dedicated section on functional programming.
- "purrr" package documentation: The
purrrpackage is the primary toolkit for functional programming in R. Its documentation is an excellent resource for learning aboutmap,reduce, and other functional programming tools. - Online tutorials and articles: Numerous online resources and tutorials are available that delve into functional programming in R, often with practical examples and use cases. Search for "functional programming R tutorial" or "purrr tutorial" to find a wealth of learning materials.
- R community forums and Stack Overflow: Engage with the R community by asking questions and participating in discussions on forums like Stack Overflow. This is a great way to learn from experienced R programmers and get help with specific challenges you encounter.
By continuously learning and practicing functional programming techniques, you can unlock a new level of efficiency and elegance in your data science workflows in R.
Frequently Asked Questions
What is functional programming and why is it relevant to data science in R?
Functional programming emphasizes pure functions and immutability, leading to more predictable and maintainable code, crucial for complex data science projects in R.
What are the key functional programming functions in R discussed in the article?
The article focuses on map, apply, and reduce, which are powerful tools for iterating over data structures and performing transformations in a functional style.
How can map be used in R for data analysis tasks?
map applies a function to each element of a list or vector, making it ideal for tasks like data cleaning or feature engineering where you need to transform multiple values.
When should I use apply instead of map in R?
apply is best suited for operating on rows or columns of matrices or arrays, while map is more versatile for working with lists and vectors.
What is reduce and how can it simplify data aggregation in R?
reduce iteratively combines elements of a data structure into a single value, making it useful for tasks like calculating sums, finding minimums/maximums, or concatenating strings.
Final Reflection: Embracing Functional Elegance in R
The journey through functional programming techniques in R, particularly the powerful trio of map, apply, and reduce, reveals more than just efficient code; it unveils a paradigm shift in how we approach data manipulation. This shift towards functional thinking is increasingly vital in today's data-rich environment, where scalability and maintainability are paramount. By embracing these techniques, we move beyond procedural scripts and towards elegant, declarative solutions that are both powerful and easier to reason about.
The impact of functional programming extends far beyond mere code optimization. It fosters a mindset of immutability and composability, leading to more robust and predictable data pipelines. Personally, I've found that adopting these techniques has not only streamlined my workflow but also deepened my understanding of data structures and algorithms. Simplicity is the ultimate sophistication.
- Leonardo da Vinci. This quote perfectly encapsulates the essence of functional programming: achieving complex tasks through elegant and simple functions.
As you continue your journey in data science, I encourage you to actively incorporate these functional programming techniques into your projects. Experiment with map, apply, and reduce, and explore the wealth of other functional tools available in R. Let the principles of immutability and composability guide your code, and you'll find yourself crafting solutions that are not only more efficient but also more beautiful. Embrace the elegance of functional programming, and unlock a new level of mastery in your data science endeavors.
Unlock Your Data Wizardry: Start Applying Functional R Now!
Thank you for exploring functional programming in R. You've gained powerful tools to streamline your data science workflows, making them more efficient and enjoyable. Now, put your knowledge into practice and witness the results firsthand.
Ready to enhance your R skills?
- Immediately apply your new knowledge to a current data science project. This is the best way to solidify your understanding of
map(),apply(), andreduce(). - Explore advanced functions and specialized packages to further refine your control.
- Share your experiences—both successes and challenges—with the DataScienceForBeginners community; collaborative learning fosters growth.
What functional programming technique are you most eager to use in your next project? Let us know in the comments!
