ProgramListFromName:
PROC[
name: Rope.
ROPE, optionalList:
LIST
OF MesaLoadState.Program ¬
NIL]
RETURNS[LIST OF MesaLoadState.Program];
returns a list of MesaLoadState.Program, whose first element is the asked for program or NIL if there is no such program; the rest of the list is the programs that were run earlier.
If optionalList is NIL, it uses the current internal list of Programs.
If the first Program on optionalList matches name, it is skipped.
One can use this routine to locate multiple instances of the same Program.
WARNING: DO NOT change the list you get - you will change the loadstate of the cedar world