barnard59 icon indicating copy to clipboard operation
barnard59 copied to clipboard

feat(map,filter): additional arguments

Open tpluscode opened this issue 1 year ago • 2 comments

I extended the map and filter steps with the option to pass any number of additional parameters for the callbacks.

Until now, to parametrise them, one required to use and access the variables. It should now be easier to achieve the same result.

For example, to filter only chunks which are greater than X

[
  base:filter (
    "(chunk, _, minValue) => chunk > minValue"^^code:EcmaScript ;
    "X"^^p:VariableName ;
  ) 
] .

tpluscode avatar Sep 12 '24 20:09 tpluscode

🦋 Changeset detected

Latest commit: 777ce5375a4ce2b89fffcc15926cb36afbc87b0b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
barnard59-base Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Sep 12 '24 20:09 changeset-bot[bot]

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 85.77%. Comparing base (ad5f176) to head (777ce53). :warning: Report is 37 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #326      +/-   ##
==========================================
+ Coverage   85.30%   85.77%   +0.47%     
==========================================
  Files         177      177              
  Lines        7411     7418       +7     
  Branches      241      241              
==========================================
+ Hits         6322     6363      +41     
+ Misses       1087     1055      -32     
+ Partials        2        0       -2     
Flag Coverage Δ
barnard59 ∅ <ø> (∅)
barnard59-base 49.39% <100.00%> (+0.53%) :arrow_up:
barnard59-core 92.38% <ø> (+1.40%) :arrow_up:
barnard59-csvw 69.69% <ø> (+1.21%) :arrow_up:
barnard59-cube 96.80% <ø> (∅)
barnard59-formats 28.17% <ø> (ø)
barnard59-ftp 97.60% <ø> (ø)
barnard59-graph-store 95.10% <ø> (∅)
barnard59-http 89.24% <ø> (+2.15%) :arrow_up:
barnard59-rdf 94.84% <ø> (∅)
barnard59-s3 ∅ <ø> (∅)
barnard59-shacl ∅ <ø> (∅)
barnard59-sparql ∅ <ø> (∅)
barnard59-validation ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Sep 12 '24 20:09 codecov[bot]