Tutorial by Topics

map = %{} // creates an empty map map = %{:a => 1, :b => 2} // creates a non-empty map list = [] // creates an empty list list = [{:a, 1}, {:b, 2}] // creates a non-empty keyword list Elixir provides two associative data structures: maps and keyword lists. Maps are the Elixir key-...
Bit fields tightly pack C and C++ structures to reduce size. This appears painless: specify the number of bits for members, and compiler does the work of co-mingling bits. The restriction is inability to take the address of a bit field member, since it is stored co-mingled. sizeof() is also disal...
ParameterDefinitionclass TSpecifies the data type of array membersstd::size_t NSpecifies the number of members in the array Use of a std::array requires the inclusion of the <array> header using #include <array>.
A Singleton is designed to ensure a class only has one instance and provides a global point of access to it. If you only require one instance or a convenient global point of access, but not both, consider other options before turning to the singleton. Global variables can make it harder to reason...
Inline expansion is a common optimization in compiled code that prioritized performance over binary size. It lets the compiler replace a function call with the actual body of the function; effectively copy/pasting code from one place to another at compile time. Since the call site is expanded to j...
Module Names In Elixir, module names such as IO or String are just atoms under the hood and are converted to the form :"Elixir.ModuleName" at compile time. iex(1)> is_atom(IO) true iex(2)> IO == :"Elixir.IO" true
.on('mouseover', function) .on('mouseout', function) .on('click', function) .on('mouseenter', function) .on('mouseleave', function) For a more in depth example where custom events are defined refer here.
This section provides an overview of what websphere-mq is, and why a developer might want to use it. It should also mention any large subjects within websphere-mq, and link out to the related topics. Since the Documentation for websphere-mq is new, you may need to create initial versions of thos...
In most cases, the spread operator *. is identical to calling .collect { it.________ }. def animals = ['cat', 'dog', 'fish'] assert animals*.length() == animals.collect { it.length() } But if the subject is null, they behave a differently: def animals = null assert animals*.length() == null...
child_process.exec(command[, options][, callback]) child_process.execFile(file[, args][, options][, callback]) child_process.fork(modulePath[, args][, options]) child_process.spawn(command[, args][, options]) child_process.execFileSync(file[, args][, options]) child_process.execSync(command[,...

Page 105 of 428