oschulz / oschulz/FunctionChains.jl

Add fcoll to turn collection of functions into a function that returns collections

Open
#7 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This would add something like

fcoll(fs) = x -> map(f -> f(x), fs)

So that

f = fcoll((a = f1, b = f2, c = f3))
f(x) == (a = f1(x), b = f2(x), c = f3(x))

Would be good to support fcoll(a = f1, b = f2, c = f3), fcoll(f1, f2, cf3) and fcoll(f1) as will, similar to how fchain handles tuples of functions.

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.

Research direction

Start by locating the existing fchain implementation and its tests, since the issue says fcoll should handle tuples, named collections, positional functions, and a single function similarly. Done means fcoll returns a callable that applies each supplied function to an input and preserves the collection shape shown in the examples.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.