stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

[RFC]: add `@stdlib/array/base/mskreject-map`

Open kgryte opened this issue 2 years ago • 6 comments

Description

This RFC proposes adding the package @stdlib/array/base/mskreject-map.

The package should be structured similarly to @stdlib/array/base/mskreject.

The package should expose an API having the same signature as mskreject, with the addition of clbk and thisArg arguments.

function mskrejectMap( x, mask, clbk[, thisArg ] ) {...}

The callback function should map each selected value specified by mask to the output value.

In short, this package combines mskreject and map into a single API call.

Package: @stdlib/array/base/mskreject-map Alias: mskrejectMap

Related Issues

Related issues #1321, #1322 .

Questions

No.

Other

No.

Checklist

  • [X] I have read and understood the Code of Conduct.
  • [X] Searched for existing issues and pull requests.
  • [X] The issue name begins with RFC:.

kgryte avatar Feb 21 '24 03:02 kgryte

@kgryte I have understood the issue and would like to work on it. Please assign this to me.

itsspriyansh avatar Feb 22 '24 20:02 itsspriyansh

@itsspriyansh Just assigned you; looking forward to your contribution!

Planeshifter avatar Feb 22 '24 20:02 Planeshifter

@kgryte Maybe I can work on this but can you give an example.I didnt understand at all.It will be really helpful.

Ccivam avatar Feb 29 '24 04:02 Ccivam

@kgryte I have understood the issue. Can you assign it to me.

bad-in-coding avatar Feb 29 '24 05:02 bad-in-coding

@Planeshifter i've looked into this extensively - i would like to implement this, please assign

adityacodes30 avatar Mar 01 '24 16:03 adityacodes30

Hi @kgryte , I worked on this issue. Can you please review it and let me know the changes required. Thanks!

bad-in-coding avatar Mar 02 '24 15:03 bad-in-coding