Solidity – Mapping
This topic is about Solidity - Mapping. Mapping is a reference type as arrays and structs. Following is the syntax to declare a mapping type. mapping(_KeyType => _ValueType) Where _KeyType −…
This topic is about Solidity - Mapping. Mapping is a reference type as arrays and structs. Following is the syntax to declare a mapping type. mapping(_KeyType => _ValueType) Where _KeyType −…
This topic is about Solidity - Structs. Struct types are used to represent a record. Suppose you want to keep track of your books in a library. You might want…
This topic is about Solidity - Enums. Enums restrict a variable to have one of only a few predefined values. The values in this enumerated list are called enums. With…
This topic is about Solidity - Arrays. Array is a data structure, which stores a fixed-size sequential collection of elements of the same type. An array is used to store…
This topic is about Solidity - Strings. Solidity supports String literal using both double quote (") and single quote ('). It provides string as a data type to declare a…
In this guide, we will discuss Clojure Sequences concat. This is used to concat two sequences together. Syntax Following is the syntax. (concat seq1 seq2) Parameters − ‘seq1’ is the first…
this topic is about Solidity - if...else if... statement. The if...else if... statement is an advanced form of if...else that allows Solidity to make a correct decision out of several conditions. Syntax The syntax…
This topic is about Solidity - if...else statement. The 'if...else' statement is the next form of control statement that allows Solidity to execute statements in a more controlled way. Syntax if (expression)…
This topic is about Solidity - if statement. The if statement is the fundamental control statement that allows Solidity to make decisions and execute statements conditionally. Syntax The syntax for a basic…
This topic is about Solidity - Decision Making. While writing a program, there may be a situation when you need to adopt one out of a given set of paths.…