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

List.sum() and similar should work for empty lists #2349

Closed
OAGr opened this issue Oct 25, 2023 · 0 comments · Fixed by #2351
Closed

List.sum() and similar should work for empty lists #2349

OAGr opened this issue Oct 25, 2023 · 0 comments · Fixed by #2351
Labels
Language Regarding Squiggle language semantics, distributions and function registry Std Lib The standard library for Squggle

Comments

@OAGr
Copy link
Contributor

OAGr commented Oct 25, 2023

  • x Is refactor

Description of suggestion or shortcoming:

Right now List.sum() is broken for empty lists.

@OAGr OAGr added Language Regarding Squiggle language semantics, distributions and function registry Std Lib The standard library for Squggle labels Oct 25, 2023
@OAGr OAGr changed the title List.sum() should work for empty lists List.sum() and List.map() and others should work for empty lists Oct 25, 2023
@OAGr OAGr changed the title List.sum() and List.map() and others should work for empty lists List.sum() and similar and others should work for empty lists Oct 25, 2023
@OAGr OAGr changed the title List.sum() and similar and others should work for empty lists List.sum() and similar should work for empty lists Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Regarding Squiggle language semantics, distributions and function registry Std Lib The standard library for Squggle
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant