September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,4 +1,8 @@
|
|||
textMenu[data_List] := (MapIndexed[Print[#2[[1]], ") ", #] &, {a, b, c}];
|
||||
While[! (IntegerQ[choice] && Length[data] > choice > 0),
|
||||
choice = Input["Enter selection"]];
|
||||
data[[choice]])
|
||||
textMenu[data_List] := Module[{choice},
|
||||
If[Length@data == 0, Return@""];
|
||||
While[!(IntegerQ@choice && Length@data >= choice > 0),
|
||||
MapIndexed[Print[#2[[1]], ") ", #1]&, data];
|
||||
choice = Input["Enter selection..."]
|
||||
];
|
||||
data[[choice]]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue