Skip to content

Implement reduce.toString() #67

@Smoren

Description

@Smoren

Reduces to a string joining all elements.

  • Optional separator to insert between items.
  • Optional prefix to prepend to the string.
  • Optional suffix to append to the string.
function *toString<T>(data: Iterable<T> | Iterator<T>, separator: string, prefix: string, suffix: string): string

PHP implementation example

Needs to be implemented:

  • reduce.toString()
  • reduce.toStringAsync()
  • Stream.toString()
  • AsyncStream.toString()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions