55 lines
884 B
V
55 lines
884 B
V
const (
|
|
// pi
|
|
// pi
|
|
pi=3.14
|
|
// phi
|
|
// phi
|
|
// phi
|
|
phi=1.618
|
|
//Euler's constant
|
|
eulers=2.7182
|
|
supported_platforms = ['windows', 'macos', 'linux', 'freebsd', 'openbsd',
|
|
'netbsd', 'dragonfly', 'android', 'js', 'solaris', 'haiku', 'linux_or_macos']
|
|
one_line_supported = ['windows', 'macos', 'linux', 'freebsd', 'openbsd', 'netbsd', 'dragonfly', 'android', 'js', 'solaris', 'haiku', 'linux_or_macos']
|
|
another_const = ['a', 'b'
|
|
'c', 'd', 'e'
|
|
'f'
|
|
]
|
|
multiline_const = [
|
|
'first line', 'second line','third line',
|
|
'fourth line']
|
|
)
|
|
|
|
const (
|
|
i_am_a_very_long_constant_name_so_i_stand_alone_and_my_length_is_over_90_characters = ['testforit']
|
|
)
|
|
|
|
pub const (
|
|
i_am_pub_const=true
|
|
)
|
|
|
|
fn main() {
|
|
a := [
|
|
[3,
|
|
5,
|
|
6],[7, 9, 2]]
|
|
b := [[
|
|
[2,
|
|
5,8],[ 5, 1,
|
|
3],[ 2, 6, 0]],[
|
|
[9,
|
|
4,5],[
|
|
7,2,3],
|
|
[1,
|
|
2,3]]]
|
|
c := [
|
|
[
|
|
[2,
|
|
5,8],[ 5, 1,
|
|
3],[ 2, 6, 0]],[[
|
|
9,
|
|
4,5],[7,2,3],
|
|
[1,
|
|
2,3]]]
|
|
}
|