haskell / haskell/bytestring

Add to splitWith documentation

Open
#560 2 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Haskell
Stars
301
Forks
144
Avg merge
7d 22h
Merged PRs (30d)
1

Description

The function [`Data.ByteString.Char8.splitWith`](https://hackage.haskell.org/package/bytestring-0.11.3.1/docs/Data-ByteString-Char8.html#v:splitWith) lists the following example:
```haskell
splitWith (=='a') "aabbaca" == ["","","bb","c",""]
```
I do not understand what the meaning of the `"".""` output is whatsoever. I would be happy to improve these docs if someone can explain what is the intended meaning behind this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.