Skip to content

Inconsistent behavior of ~. and special code failure #13

@mlochbaum

Description

@mlochbaum

See this J forum post for full details. Inconsistencies in how ~. and /. handle arguments with tolerantly equal elements. In particular, the following results are dangerously incorrect.

   tb =: 1+2e_14*i:3
   #tb
7
   #/.~ 1+2e_14*i:3  NB. sum of group lengths should be total length
3
   (#,{.)/.~ tb  NB. Should not fail
|length error
|       (#,{.)/.~tb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions