[Seed7-users] Seed7 - Ternary Assignment for Arrays and Hashes
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
|
From: Zachary M. <za...@ma...> - 2025-11-05 16:26:48
|
Hey Thomas, Is there a reason why assignment via ternary expression is not supported for arrays or hashes? var array string: strings is 0 times ""; const type: StringHash is hash [string] integer; var StringHash: aHash is StringHash.value; strings := 1 > 0 ? 3 times "" : 2 times ""; aHash := 1 > 0 ? [] (["a":1], ["b":2]) : StringHash.value; Zachary |