Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Menu/Zkl/menu.zkl
Normal file
13
Task/Menu/Zkl/menu.zkl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
fcn teleprompter(options){
|
||||
os:=T("exit").extend(vm.arglist); N:=os.len();
|
||||
if(N==1) return("");
|
||||
while(1){
|
||||
Utils.zipWith(fcn(n,o){"%d) %s".fmt(n,o).println()},[0..],os);
|
||||
a:=ask("Your choice: ");
|
||||
try{ n:=a.toInt(); if(0<=n<N) return(os[n]); } catch{}
|
||||
println("Ack, not good");
|
||||
}
|
||||
}
|
||||
|
||||
teleprompter("fee fie" , "huff and puff" , "mirror mirror" , "tick tock")
|
||||
.println();
|
||||
Loading…
Add table
Add a link
Reference in a new issue