Add `array_udiff` funciton

Open
#836 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
40/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, php
Domain
compilers

Research direction

Start with the existing array_diff entry point and compare its behavior with the PHP array_udiff manual reference. Determine how a user-defined comparator should be supported without requiring array elements to convert to strings; done means the new function matches the documented array_udiff behavior.

Written by the indexing model from the issue text.

Description

missing functionality

https://www.php.net/manual/en/function.array-udiff.php
Now we have array_diff(a, b) function. But it requires that array internal type must be convertible to string. This functions allows to add user-defined comparator.

Dominant language
C++
Stars
1.5k
Forks
116
Avg merge
5d 17h
Merged PRs (30d)
11

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VKCOM/kphp

All issues in VKCOM/kphp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.