intuit / intuit/common-xtext-expression-language

Add support for primitive arrays in remove function

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
enhancement moderate
Dominant language
Java
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

The filter function does not support filtering primitive arrays like below
remove(["foo", "bar", "foobar"], length(it)==3)

This is mainly because it does not support `it` reference

**Describe the solution you'd like**

Add support for `it` operator in remove function, so that it supports a primitive array

Contributor guide

Open the contributing guide

Research direction

The issue names the remove function, filter behavior, primitive arrays, and the it reference but no files or tests. Start by locating the remove implementation and existing tests for filter or it; done means remove accepts the shown primitive-array expression and its behavior is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.