Skip to content

Conversation

@johnc1231
Copy link
Contributor

In python, "hail" * 3 evaluates to "hailhailhail". I've added support for this syntax to hail expressions by overriding StringExpression.__mul__, StringExpression.__rmul__, Int32Expression.__mul__, and Int32Expression.__rmul__. It was necessary to do all 4 in order to make sure all possible combinations of python values and hail expressions work.

@danking danking merged commit eb369b8 into hail-is:main Aug 10, 2021
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.

3 participants