listUntilEnd
Open
- Dominant language
- Haskell
- Stars
- 120
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
I often find myself needing this function:
```
listUntilEnd :: (Binary a) => Get [a]
listUntilEnd = do
done <- isEmpty
if done then return [] else do
next <- get
rest <- listUntilEnd
return (next:rest)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.