All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.expressions.sort-implicit.pec Maven / Gradle / Ivy

There is a newer version: 0.0.74
Show newest version
define key as Integer attribute
define Person as category with attributes key and name

define main as method doing:
    e1 = Person with 3 as key and "Peter" as name
    e2 = Person with 2 as key and "Alan" as name
    e3 = Person with 1 as key and "John" as name
    list = [ e1, e2, e3 ]
    printLine "sorted -> " + sorted list




© 2015 - 2024 Weber Informatics LLC | Privacy Policy