Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiniteSetsExt!Sum and FiniteSetsExt!Product easily name-clash #62

Closed
lemmy opened this issue Jan 14, 2022 · 1 comment
Closed

FiniteSetsExt!Sum and FiniteSetsExt!Product easily name-clash #62

lemmy opened this issue Jan 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lemmy
Copy link
Member

lemmy commented Jan 14, 2022

Sum(set) ==
(*************************************************************************)
(* Calculate the sum of the elements in set. *)
(* *)
(* Example: *)
(* Sum(0 .. 10) = 55 *)
(*************************************************************************)
FoldSet(+, 0, set)
Product(set) ==
(*************************************************************************)
(* Calculuate the product of the elements in set. *)
(* *)
(* Example: *)
(* Product(1 .. 3) = 6 *)
(*************************************************************************)
FoldSet(LAMBDA x, y: x * y, 1, set)

Sum -> SumSet
Product -> ProductSet

Both names would also be in line with ReduceSet.

Objections anybody?

@lemmy lemmy added the enhancement New feature or request label Jan 14, 2022
@muenchnerkindl
Copy link
Contributor

Sounds good to me.

lemmy added a commit that referenced this issue Jan 14, 2022
Fixes Github issue #62
#62

[Refactor]
@lemmy lemmy closed this as completed Jan 14, 2022
lemmy added a commit that referenced this issue Apr 10, 2022
Fixes Github issue #62
    #62

[Refactor]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants