Chinese University MOOCPython language programming (Beijing University of Technology) week 5-6 study notes and after-school exercises

Week 5 function and code reuse 5.1 definition and use of functions Use the reserved word def to define the function and lambda to define the anonymous function Optional parameters (initial value), variable parameters (* b), name transfer The reserved word return can return any number of results The reserved word global declaration uses gl ...

Added by jwer78 on Wed, 09 Mar 2022 16:06:40 +0200

Analysis of std::function source code of C++11

1. Source code preparation This article is based on the analysis of the source code of gcc-4.9.0. std::function is added to the standard only after C++11. Therefore, the lower version of GCC source code does not have std::function. It is recommended to choose 4.9.0 or later version to learn. The difference between different versions of ...

Added by jaybones on Sat, 29 Jan 2022 20:10:00 +0200

week1--Learning functions, pointers, and strings

Some basic knowledge of functions 1. Format of function definition: Return value type function name (parameter list) { Code Body return x;(x is of type return value) } For example: int add(int a,int b) (void Do not use this type return) { int sum=a+b; return sum; } Function classification: library function; Functions that come with the sy ...

Added by ICEcoffee on Wed, 19 Jan 2022 19:44:17 +0200

RxJava3. Getting started with X -- creating and transforming operators

RxJava3. Getting started with X (2) -- create operators and transform operators Create Operator 1, Foundation creation 1.create() Use the Create operator to Create a complete Observable, which can pass onNext, onError, onCompleted and other events. Demo code: Observable.create((ObservableOnSubscribe<Integer>) e -> { ...

Added by Qazsad on Wed, 05 Jan 2022 12:44:40 +0200

RxJava3.x Getting Started Guide - filter operators

RxJava3.x Getting Started Guide (IV) -- filter operator 1, Filter events based on specified event criteria 1.filter() Function: filter the events sent by the observer through certain logic. If true is returned, the event will be sent, otherwise it will not be sent Demo code: Observable .just(1,2,3,4,5) ...

Added by stb74 on Tue, 04 Jan 2022 20:54:56 +0200

[Monday commuter radio] issue 1 introduces you to functional programming

Hello, everyone, this is Yi Jun @ Monday commuter radio channel. This channel will start from a knowledge point, so that your commute will not be boring or tired. This article is about 1250 words in total, and the reading time is about the same as Tao Zhen's beach. 1. Definitions Functional programming means creating the best results of ...

Added by mcog_esteban on Tue, 21 Dec 2021 04:46:22 +0200

Write JavaScript code gracefully

catalogue preface Avoid using js dross and chicken ribs Write concise JavaScript code Use the new features of ES6/ES7 Babel ESLint Prettier Using functional programming Several principle examples of elegant JS code     Introduction to functional programming Abstract ability summary preface Almost every larger c ...

Added by suncore on Tue, 28 Sep 2021 03:29:34 +0300