haskell / haskell/text

Support for Indexed Folds?

Open
#484 2 comments 0 reactions 0 assignees View on GitHub
feature request question
Dominant language
Haskell
Stars
421
Forks
163
PR merge metrics
No merged PRs in 30d

Description

Sorry if this is already addressed.

I'm in need of an `ifoldl'` function over text values, and I can't seem to find it.

```haskell
ifoldl' :: forall a. (a -> Int -> Char -> a) -> a -> Text -> a
```

Lens combinators come close, but I don't think it's possible to make an instance of [FoldableWithIndex](https://hackage.haskell.org/package/lens-5.2/docs/Control-Lens-Combinators.html#t:FoldableWithIndex) for text?

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.