Tutorial by Topics: rs

val extractor(extractedValue1, _ /* ignored second extracted value */) = valueToBeExtracted valueToBeExtracted match { case extractor(extractedValue1, _) => ???} val (tuple1, tuple2, tuple3) = tupleWith3Elements object Foo { def unapply(foo: Foo): Option[String] = Some(foo.x); }
If the access modifier is omitted, classes are by default internal methods are by deault private getters and setters inherit the modifier of the property, by default this is private Access modifiers on setters or getters of properties can only restrict access, not widen it: public string ...
In C, it is common to use return values to denote errors that occur; and to return data through the use of passed in pointers. This can be done for multiple reasons; including not having to allocate memory on the heap or using static allocation at the point where the function is called.
An operator is a character that represents an action. It tells the compiler/interpreter to perform specific mathematical, relational or logical operation and produce final result. PowerShell interprets in a specific way and categorizes accordingly like arithmetic operators perform operations primari...
Numbers hierarchy Ruby includes several built-in classes to represent numbers: Numeric Integer Fixnum # 1 Bignum # 10000000000000000000 Float # 1.0 Complex # (1+0i) Rational # Rational(2, 3) == 2/3 BigDecimal # not loaded by default The most comm...
factor(x = character(), levels, labels = levels, exclude = NA, ordered = is.ordered(x), nmax = NA) Run ?factor or see the documentation online. An object with class factor is a vector with a particular set of characteristics. It is stored internally as an integer vector. It maintains a...
A pointer is a type of variable which can store the address of another object or a function. <Data type> *<Variable name>; int *ptrToInt; void *ptrToVoid; /* C89+ */ struct someStruct *ptrToStruct; int **ptrToPtrToInt; int arr[length]; int *ptrToFirstElem = arr; /* For <C99...
PrefixBrowser(s)-webkit-Google Chrome, Safari, newer versions of Opera 12 and up, Android, Blackberry and UC browsers-moz-Mozilla Firefox-ms-Internet Explorer, Edge-o-, -xv-Opera until version 12-khtml-Konquerer Vendor prefixes are used to allow preview support for new CSS functionality where the...
A class is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods).A class is a blueprint for an object. It is used as a model to define the structure of objects. An object contains ...
Every browser has a default set of CSS styles that it uses for rendering elements. These default styles may not be consistent across browsers because: the language specifications are unclear so base styles are up for interpretation, browsers may not follow specifications that are given, or browsers ...
pointer := &variable // get pointer from variable variable := *pointer // get variable from pointer *pointer = value // set value from variable through the pointer pointer := new(Struct) // get pointer of new struct
(function name) ; retrieves the function object of that name #'name ; syntactic sugar for (function name) (symbol-function symbol) ; returns the function bound to symbol (funcall function args...) ; call function with args (apply function arglist) ; call function with arguments given in a list...

Page 4 of 31