Skip to content

[Mojo] Change fn to def & Add std. to stdlib imports - #6

Merged
forfudan merged 1 commit into
mainfrom
mojo26.2
May 5, 2026
Merged

forfudan merged 1 commit into
mainfrom
mojo26.2

Conversation

@shivasankarka

@shivasankarka shivasankarka commented Apr 3, 2026 •

Copy link
Copy Markdown
Member

This PR changes fn to def and add std. to stdlib imports for the StaMo codebase.

@shivasankarka
shivasankarka marked this pull request as draft April 3, 2026 17:05
@shivasankarka
shivasankarka marked this pull request as ready for review April 3, 2026 17:11
Update codebase to Mojo v0.26.2:
- Change `fn` to `def` and add `std.` prefix to stdlib imports
- Rename `std` to `stddev` to avoid conflict with Mojo's `std`
- Add Beta, Gamma, Poisson distributions
- Update test_distributions.mojo
@forfudan
forfudan self-requested a review May 5, 2026 12:08

@forfudan forfudan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased to the main branch and looks good.

@forfudan
forfudan merged commit 82d5b79 into main May 5, 2026
1 check passed
@forfudan
forfudan deleted the mojo26.2 branch May 5, 2026 12:09
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