haskell / haskell/text

Support for Indexed Folds?

未关闭
#484 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature request question
主要语言
Haskell
星标
421
派生
163
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。