Pure pipe A pure pipe is only called when Angular detects a change in the value of the parameters passed to a pipe@Pipe({name: 'filterPipe', pure: true }) export class FilterPipe {} Impure pipe An impure pipe is
This is impure because inside the function body, it references document.cookie which is a global variable. However, if I were to make the function with a parameter called cookies, and reference cookies in place of document.cookie in the function body, then call my function with document....
A higher-order function is simply a function that takes a function as an argument. A functor is any type construction T for which there exists a higher-order function, call it map, that transforms a function of type a -> b (given any two types a and b) into a function T a -> T...