NPL (programming language): Difference between revisions

Content deleted Content added
m link
wikilink; tweak formulation
Line 6:
setofeven(X) <= <:x: x in X & even(x) :>
 
The NPL interpreter evaluates the list of generators from left to right so conditions can mention any bound variables that occur to their left. These were known as [[set comprehensionscomprehension]]s. NPL eventually evolved into [[Hope programming language|Hope]] but lost set comprehensions, which weremade a reappearance in the form calledof [[list comprehension]]s in later functional languages.
 
''Reference: John Darlington, "Program Transformation and Synthesis: Present Capabilities", Research Report No. 77/43, Dept. of Computing and Control, Imperial College of Science and Technology, London September 1977.''