Readline interface: Difference between revisions

m
(Added 11l)
Line 41:
print(‘ help’)
:histArr [+]= ‘help’
 
[String = (() -> N)] aa
aa[‘help’] = help
aa[‘hist’] = hist
aa[‘hello’] = hello
 
print(‘Enter a command, type help for a listing.’)
Line 48 ⟶ 53:
I line == ‘exit’
L.break
I aa.get(line, == ‘hist’help)()</lang>
hist()
E I line == ‘hello’
hello()
E
help()</lang>
 
=={{header|C}}==
1,481

edits