Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Menu/Mathematica/menu.math
Normal file
8
Task/Menu/Mathematica/menu.math
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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