[Day5] ES5 (higher order function, anonymous function, scope, closure)

Date: February 4 1. Higher order function What is a Function: a Function is a data type [Function] Function that can be defined by an expression Higher order function: since a function is of a type and can be used as a parameter or return value of another function, the function is called a higher-order function (simply a function calling fu ...

Added by jwer78 on Fri, 04 Feb 2022 06:59:02 +0200

Go deep into LINQ | unveil IQueryable

stay LastIn depth LINQ | dynamic construction of LINQ expression In this blog post, we explore the power of expression and use it to dynamically build a JSON based rule engine. In this article, we start with expressions instead. Considering the diversity of expression types and the complexity of expression tree, what is a good way to decompose ...

Added by Scriptor on Tue, 01 Feb 2022 05:59:42 +0200

[C Advanced] bit segment - enumeration - Union

catalogue 1. Bit segment       1.1. What is a bit segment       1.2. Memory allocation of bit segment       1.3 cross platform problem of location section       1.4 application of bit segment 2. Enumeration       2.1 definition of enumeration type       2.2 advantages of enumeration       2.3 use of enumeration 3. United       3.1 de ...

Added by zszucs on Wed, 26 Jan 2022 15:42:09 +0200

java understanding TreeMap ordered collection

TreeMap is a Map collection that can compare the size of elements. It will sort the size of the incoming key s. You can use the natural order of elements, or you can use a custom comparator in the collection to sort. The tree structure is realized at the bottom of TreeMap, and a structure of red black tree is realized. TreeMap inherits from Ab ...

Added by fantomel on Wed, 26 Jan 2022 03:50:07 +0200

File class, method recursion, IO stream technology

File class effect The File class can create an object location File: delete, obtain the information of the text itself, and so on( package com.itliuxue.d2_recursion; public class RecursionDemoc03 { public static void main(String[] args) { System.out.println(f(1)); } public static int f(int n){ if(n == 10){ ...

Added by wescrock on Wed, 26 Jan 2022 01:24:26 +0200

Arcgis10.2+pgsql14 development (non SDE version)

Cause: SDE and pgsql11 were initially used for development, but later the database was upgraded to pgsql14. Because SDE and PgSQL versions did not match, it was unable to import element data and display data. Database upgrading was inevitable, so we had to find another solution. reference material: Spatial Database for Postgres and ArcGis user ...

Added by urb on Sun, 23 Jan 2022 15:55:36 +0200

C# Expression (Advanced)

1, What is Expression 1. How to define Expression < func < tSource, bool > > is the expression directory tree Expression cannot contain curly braces. It can only have one line of code 2. Difference between and entrustment Wrap a layer of expression < > outside the delegate, which is the expression directory tree The expr ...

Added by manalnor on Wed, 19 Jan 2022 12:35:28 +0200

STM32F103 - description and function of general timer

preface In this section, we will describe and introduce the general timer function of STM32, and also summarize STM32 (VI) and STM32 (VII) ---------------------— catalogue 1. Introduction to general timer 2. Timer initialization function 3. PWM wave ---------------------— I Introduction of timer ------- 1. What is a universal timer? ...

Added by McChicken on Tue, 18 Jan 2022 06:18:00 +0200

Basic use of JSON (detailed explanation)

1, What is JSON JSON (JavaScript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to machine parse and generate. It is based on JavaScript programming language, a subset of standard ecma-262 3rd Edition - December 1999. JSON adopts a text format completely independent of the language, but it al ...

Added by msnhockey on Mon, 17 Jan 2022 14:31:10 +0200

javaScript learning notes "switch statement", "breakpoint", "ternary operation", "while loop" and "for loop"

switch Statements Swith statement structure:         switch (key) {         case value:             break;         case value:             break;         case value:             break;         default:             break;     } var x = prompt('Please enter an option A-D'); switc ...

Added by NS on Wed, 12 Jan 2022 20:08:24 +0200