build: separate compiler and libs
This commit is contained in:
19
compiler/cl/_testpy/max/in.go
Normal file
19
compiler/cl/_testpy/max/in.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/py"
|
||||
"github.com/goplus/llgo/py/std"
|
||||
)
|
||||
|
||||
func main() {
|
||||
x := std.Max(py.Float(3.0), py.Float(9.0), py.Float(23.0), py.Float(100.0))
|
||||
std.Print(x)
|
||||
|
||||
list := py.List(3.0, 9.0, 23.0, 100.0)
|
||||
y := std.Max(std.Iter(list))
|
||||
std.Print(y)
|
||||
|
||||
tuple := py.Tuple(1.0, 2.0, 3.0)
|
||||
z := std.Max(std.Iter(tuple))
|
||||
std.Print(z)
|
||||
}
|
||||
Reference in New Issue
Block a user