Skip to content

"apl iota" does not work only \iota #8

@Thomashrb

Description

@Thomashrb

Using the same unicode for iota that APL uses gives this

julia> apl"⍳2"
ERROR: LoadError: ⍳: undefined APL symbol
Stacktrace:
 [1] parse_apl(s::String, i::Int64, paren_level::Int64, curly_level::Int64)
   @ APL ~/.julia/packages/APL/qzFcC/src/parser.jl:85
 [2] parse_apl(str::String)
   @ APL ~/.julia/packages/APL/qzFcC/src/parser.jl:45
 [3] var"@apl_str"(__source__::LineNumberNode, __module__::Module, str::Any)
   @ APL ~/.julia/packages/APL/qzFcC/src/APL.jl:11
in expression starting at REPL[42]:1

However using \iota works.

julia> apl"ι2"
1:2

Unicode codepoints:

julia> codepoint('ι')
0x000003b9

julia> codepoint('⍳')
0x00002373

I am not sure if this is intended but I couldn't find that documented anywhere if so. If it is not intended I am not sure what the solution is but perhaps it makes sense to support both?

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