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

fuse on array of string #441

Open
fabienmica opened this issue Sep 21, 2022 · 1 comment
Open

fuse on array of string #441

fabienmica opened this issue Sep 21, 2022 · 1 comment

Comments

@fabienmica
Copy link

string[][] data = [["100", "1Y"], ["200", "2Y"], ["300", "3Y"]];  
data.fuse;  

This does not compile, because it goes to char level instead and shape do not match.
I also tried fuseAs!string but does not compile either.

@jmh530
Copy link
Contributor

jmh530 commented Sep 21, 2022

Looks like fuse calls fuseShape, which fails. This bug occurs with any array of strings.

It looks like the function looks through to the deep element type. So for instance,

writeln(fuseShape([100])); //prints [1]
writeln(fuseShape("100")); //prints [3]
writeln(fuseShape("1Y")); //prints [2]

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

No branches or pull requests

2 participants