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

gen upgrade base implementation #552

Merged
merged 4 commits into from
Sep 26, 2024
Merged

Conversation

amatgil
Copy link
Contributor

@amatgil amatgil commented Sep 25, 2024

Update gen to take a shape and a seed and return an array of that shape full of random numbers. There are still some questions to answer, though

  • What is the argument order?
  • Should the last seed be output as well?

@kaikalii
Copy link
Member

I think the argument order should be ? Shape Seed.

It may be simpler to not return the new seed. This could be achieved via ∩gen[], or the like.

@amatgil amatgil force-pushed the mgen_proper branch 5 times, most recently from 30e364d to e3f6264 Compare September 26, 2024 19:57
@amatgil
Copy link
Contributor Author

amatgil commented Sep 26, 2024

Argument order has been decided on newseed result ? shape seed

It should be ready to merge

src/primitive/defs.rs Outdated Show resolved Hide resolved
src/primitive/defs.rs Outdated Show resolved Hide resolved
src/primitive/defs.rs Outdated Show resolved Hide resolved
@kaikalii kaikalii merged commit 1e12001 into uiua-lang:main Sep 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants