Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (37 loc) · 3.05 KB

cp.rx.go.List.md

File metadata and controls

48 lines (37 loc) · 3.05 KB

docs » cp.rx.go.List


Extends: Statement

A Statement that will loop through a table as a list from item 1 to the table length.

Submodules

API Overview

  • Constructors - API calls which return an object, typically one that offers API methods
  • List
  • Methods - API calls which can only be made on an object returned by a constructor
  • Sorted
  • SortedBy

API Documentation

Constructors

Signature cp.rx.go.List(values) -> List
Type Constructor
Description Creates a new List Statement that will loop through the provided table as a list.
Parameters
  • values - a table value, or a function which returns a table.
Returns
  • The Statement which will return the first value when executed.

Methods

Signature cp.rx.go.List:Sorted() -> List.Sorted
Type Method
Description Indicates the List should be sorted by its natural order before being sent out individually.
Parameters
  • None
Returns
  • The Sorted Statement.Modifier.
Signature cp.rx.go.List:SortedBy(...) -> List.SortedBy
Type Method
Description Indicates the List should be sorted by the provided function.
Parameters
  • None
Returns
  • The SortedBy Statement.Modifier.