fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 233: Read a command line string flag
Idiom # 233: Read a command line string flag
See
programming-idioms.org
:
Code
country => for a1 := "", a2 a2 in envir.args.drop 1 until a1 = "-country" a2 else "Canada" say country
What are effects?
Running Example
ex233 is country => for a1 := "", a2 a2 in envir.args.drop 1 until a1 = "-country" a2 else "Canada" say country
What are effects?
last changed: 2024-07-01
next: Idiom # 234: Encode bytes to base64