Zio: STM: Enhance TArray

Created on 30 Nov 2019  路  3Comments  路  Source: zio/zio

zio.stm.TArray is missing many useful methods:

  • find to find an element
  • indexOf to get the index of a matching element
  • etc.

Probably 10 or so helpful utility methods could be added to TArray to make summarizing and retrieving information from the array more useful.

I would look on methods of Array / Vector in Scala and see which ones would be a good fit for TArray.

enhancement good first issue

Most helpful comment

I'd like to have a go at this one. I've made a start but need to add in some tests yet.

All 3 comments

I'd like to have a go at this one. I've made a start but need to add in some tests yet.

I've made a PR for this. Hopefully I haven't gone too far with adding methods.

Closed by #2446.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

softinio picture softinio  路  3Comments

NeQuissimus picture NeQuissimus  路  3Comments

adamgfraser picture adamgfraser  路  4Comments

jdegoes picture jdegoes  路  4Comments

jdegoes picture jdegoes  路  4Comments