Options
All
  • Public
  • Public/Protected
  • All
Menu

prelude-ts

Index

Type aliases

IterableArray

IterableArray: object

IterableArray can take a type and apply iterable to its "components". That is useful for instance for Vector.zip

IterableArray<[string,number,string]> => [Iterable<string>, Iterable<number>, Iterable<string>]

Type declaration

SortBySpec

SortBySpec: object

Ability to specify a sorting function. See Seq.sortBy.

{sortBy: (v1:T,v2:T)=>Ordering}

Type declaration

SortOnSpec

SortOnSpec: object

Ability to specify a sorting function. See Seq.sortOn.

You can give a lambda getting a sortable value (number or string) from your object, or a list of lambdas, and in the list you can also put {desc:lambda} items to request descending sorting

{sortOn: ToOrderable<T>|Array<ToOrderable<T>|{desc:ToOrderable<T>}>}

Type declaration

Generated using TypeDoc