Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




#lang transd
 
MainModule: {
    _start: (λ 
        (textout (max 9 6 2 11 3 4) " ")
        (with v [1, 45, 7, 274, -2, 34]
            (textout (max-element v) " ") 
            (textout (max-element-idx v))
    ))
}