]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ListSyntax11.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / ListSyntax11.scl
1 import "Prelude"
2
3 dists l = sum [sqrt (x*x+y*y) 
4               | (x,y) <- l ]
5               
6 main = dists [(0,0),(1,1),(2,0)]
7 --            
8 3.414213562373095