1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/dl/example/library.v

11 lines
157 B
V

module library
[export: 'add_1']
pub fn add_1(x int, y int) int {
return my_private_function(x + y)
}
fn my_private_function(x int) int {
return 1 + x
}