Scout Chart Creator
  • Overview
  • Get Started
    • Tutorial 1: NMR Daily Transaction Count
    • Tutorial 2: LPT Weekly Volume (USD)
    • Tutorial 3: NMR vs LPT Daily comparison
  • Pipeline
    • Filter
    • Project
    • Group
      • Accumulators
    • Sort
    • Unwind
    • Custom
  • Data Source
    • Transactions
    • States
    • Contracts
    • Aragon
    • Livepeer
    • dYdX
    • Set
    • Token holders
  • Operators
    • Math operators
    • Logic operators
    • Function operators
    • Array operators
    • String operators
  • Config
  • Protocols
    • Dodo
      • 24H trade volume
      • Deposit & Withdraw
    • Livepeer
    • dYdX
      • Making sense of the trade data
    • MakerDao
    • Pickle Finance
      • Example: Daily deposit and withdraw of jar 0.88
      • Example: Listing all borrows of a strategy
  • FAQ
    • Dealing with "logs" field in "Transaction"
    • How to handle "Query Timeout" error?
    • How to use a variable in a Pipeline
  • Research
    • The circulating supply of DODO tokens
    • How are bitcoins doing on Ethereum? (as of Jan 20th 2021)
Powered by GitBook
On this page

Was this helpful?

  1. Operators

Array operators

PreviousFunction operatorsNextString operators

Last updated 4 years ago

Was this helpful?

arrayConcat(array0, array1, ...)

Concatenates the arguments to return the concatenated array. Each argument must be an array.

arraySearch(array, element, start, end)

Searches a value in an array and returns the index (zero-based) of the first occurrence.

array : The array to search from.

element : The value to search for.

start : The starting index position for the search. Optional.

end : The ending index position for the search. Optional.

If both start and end are left empty, the search will cover the entire array.

arrayDiffer(array0, array1)

Compares array0 to array1 and returns an array containing the elements that only exist in array0

arrayEqual(array0, array1, ...)

Returns true if all arguments have the same distinct elements. Otherwise, returns false. Each argument must be an array.

arrayOverlap(array0, array1, ...)

Returns an array that contains the elements appearing in every argument. Each argument must be an array. If there is no overlap, it returns an empty array.

arrayUnion(array0, array1, ...)

Returns an array that contains the elements appearing in any argument. Each argument must be an array.

arraySize(array)

Returns the total number of elements in array. The argument must be an array.

range(start, end, step)

Generates a sequence of numbers and returns them in an array.

start : The start value of the sequence.

end : The end value of the sequence.

step : The incremental value. It's optional and the default is 1.

arrayConcat
arraySearch
arrayDiffer
arrayEqual
arrayOverlap
arrayUnion
arraySize
range