Skip to content

fuse on array of string #441

Description

@fabienmica
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.

Activity

  1. jmh530 commented on Sep 21, 2022

    @jmh530
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions