Hi,
Using index with axis on a vector results in assertion failure.
It works correctly with arrays of higher dimension or without axis.
1⌷[⎕IO]⍳1
==============================================================================
Assertion failed: IX.value_count() != 1
in Function: index
in file: Value.cc:1063
Call stack:
----------------------------------------
-- Stack trace at Value.cc:1063
----------------------------------------
0x7fc38ee5ab45 __libc_start_main
0x4358f5 main
0x52a46d Workspace::immediate_execution(bool)
0x46d5cd Command::process_line()
0x46c379 Command::process_line(UCS_string&)
0x4767a8 Executable::execute_body() const
0x4e6630 StateIndicator::run()
0x49b05a Prefix::reduce_statements()
0x497bbe Prefix::reduce_A_F_C_B()
0x4e7a3c StateIndicator::eval_AXB(Token&, Token&, Token&, Token&)
0x4a0c65 Bif_F2_INDEX::eval_AXB(Value_P, Value_P, Value_P)
0x523d46 Value::index(IndexExpr const&) const
0x44365f do_Assert(char const*, char const*, char const*, int)
========================================
SI stack:
Depth: 0
Exec: 0x960830
Safe ex: no
Pmode: ◊ 1⌷[⎕IO]⍳1
PC: 7 ENDL
Stat: 1⌷[⎕IO]⍳1
err_code: 0x0
thrown: at StateIndicator.cc:41
e_msg_1: 'No Error'
e_msg_2: ''
e_msg_3: ''
==============================================================================
-k