Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solidity-dynamic-array

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidity-dynamic-array - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

package.json
{
"name": "solidity-dynamic-array",
"version": "0.1.0",
"version": "0.2.0",
"author": {

@@ -5,0 +5,0 @@ "name": "Kamil Planer",

@@ -663,2 +663,87 @@ # <center> Solidity dynamic array </center>

**mapToUintArray**
```solidity
function mapToUintArray(struct LinkedList list, function (bytes,uint256) view returns (uint) callback) internal view returns (uint256[] memory)
```
Creates a new array of uint256 that are the result of calling the callback function for each element
| Name | Type | Description |
| -------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| list | struct LinkedList | The list to iterate over |
| callback | function (bytes,uint256) view returns (uint256) | The function to call for each element. It accepts the element and the index as parameters and returns a new item |
| Name | Type | Description |
| ---- | ---------------- | ---------------------- |
| [0] | uint256[] memory | A new array of uint256 |
**mapToIntArray**
```solidity
function mapToIntArray(struct LinkedList list, function (bytes,uint256) view returns (int) callback) internal view returns (int256[] memory)
```
Creates a new array of int256 that are the result of calling the callback function for each element
| Name | Type | Description |
| -------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| list | struct LinkedList | The list to iterate over |
| callback | function (bytes,uint256) view returns (int256) | The function to call for each element. It accepts the element and the index as parameters and returns a new item |
| Name | Type | Description |
| ---- | --------------- | --------------------- |
| [0] | int256[] memory | A new array of int256 |
**mapToBoolArray**
```solidity
function mapToBoolArray(struct LinkedList list, function (bytes,uint256) view returns (bool) callback) internal view returns (bool[] memory)
```
Creates a new array of boolean values that are the result of calling the callback function for each element
| Name | Type | Description |
| -------- | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| list | struct LinkedList | The list to iterate over |
| callback | function (bytes,uint256) view returns (bool) | The function to call for each element. It accepts the element and the index as parameters and returns a new item |
| Name | Type | Description |
| ---- | ------------- | ----------------------------- |
| [0] | bool[] memory | A new array of boolean values |
**mapToAddressArray**
```solidity
function mapToAddressArray(struct LinkedList list, function (bytes,uint256) view returns (address) callback) internal view returns (address[] memory)
```
Creates a new array of addresses that are the result of calling the callback function for each element
| Name | Type | Description |
| -------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| list | struct LinkedList | The list to iterate over |
| callback | function (bytes,uint256) view returns (address) | The function to call for each element. It accepts the element and the index as parameters and returns a new item |
| Name | Type | Description |
| ---- | ---------------- | ------------------------ |
| [0] | address[] memory | A new array of addresses |
**mapToStringArray**
```solidity
function mapToStringArray(struct LinkedList list, function (bytes,uint256) view returns (string) callback) internal view returns (string[] memory)
```
Creates a new array of string values that are the result of calling the callback function for each element
| Name | Type | Description |
| -------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| list | struct LinkedList | The list to iterate over |
| callback | function (bytes,uint256) view returns (string) | The function to call for each element. It accepts the element and the index as parameters and returns a new item |
| Name | Type | Description |
| ---- | --------------- | ---------------------------- |
| [0] | string[] memory | A new array of string values |
**filter**

@@ -665,0 +750,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc