Unexpected behavior in Julia ifelse with isassigned

前端 未结 0 1625
醉话见心
醉话见心 2020-11-30 06:40
test = [1, 1, 1, 1]
ifelse(isassigned(test, 5), test[5], "nope")

To me, this should yield the string "nope", but instead I get

相关标签:
回答
  • 消灭零回复
提交回复
热议问题