Jump to content

Arrays: Difference between revisions

Line 3,713:
* lmap LIST VARNAME..., maps the list items to the given variable names, in the order given.
 
For filter and foreach, the VARNAME fields are optional, LIL creates defaults inside the code block of '''x''' for filter and '''i''' for foreach if user names are not given.
<lang tcl># Not Arrays in LIL
 
<lang tcl># Not(not) Arrays, in LIL
set a [list abc def ghi]
set b [list 4 5 6]
Line 3,730 ⟶ 3,732:
4
4 5 6 {7 8 9}</pre>
 
By and large, LIL is NOT an array processing language; LIL is a Little Interpreted Language built to deal with strings, commands, and substitutions.
 
If need arose for tight array processing, LIL is very easy to embed in C applications and extend with new functions that run at speed. If need arises. LIL is small enough, under 4K of source lines, total, that adding extra commands for LIL scripting using C code is quite approachable. If a developer is more comfortable in Pascal, fplil.pas is only 86K characters of source.
 
=={{header|Lingo}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.