• Creates the list from the builder.

    Type Parameters

    • A

    Parameters

    • builder: (<B>(appendToHead) => ((currentList) => B))

      The function receives appendToHead and currentList and returns the appended list.

        • <B>(appendToHead): ((currentList) => B)
        • Type Parameters

          • B

          Parameters

          • appendToHead: ((a) => ((b) => B))
              • (a): ((b) => B)
              • Parameters

                • a: A

                Returns ((b) => B)

                  • (b): B
                  • Parameters

                    • b: B

                    Returns B

          Returns ((currentList) => B)

            • (currentList): B
            • Parameters

              • currentList: B

              Returns B

    Returns List<A>

    The built list.

Generated using TypeDoc