Hash :
e3295dbb
Author :
Thomas de Grivel
Date :
2025-05-18T12:22:42
return and unwind protect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
type(%Time{})
Tag.type(%Time{})
Tag.type(%Time{tv_sec: 3})
Tag.type(%Time{tv_sec: 3, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 3, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 300, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 3000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 30000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 300000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 3000000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 30000000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 300000000, tv_nsec: 3000})
Time.to_str(%Time{tv_sec: 3000000000, tv_nsec: 3000})
kc3_access" [%File.Stat{st_dev: (Uw) 1039,
s = %File.Stat{st_dev: (Uw) 1039,
{tv_sec: 1741711560, tv_nsec: 122204319}}
s = %File.Stat{st_dev: (Uw) 1039}
s.st_mtim
List.to_array
a = %KC3.Op{sym: :dot, callable: fn (a, b) { a.x * b.y + a.y * b.y }}
block :abc do
return 1
end
block :abc do
return 1
123
end
block :abc do
return_from :abc 1
123
end
block :abc do
return_from :abc 1 + 1
123
end
a = fn (x) { return x * 2 ; 3 }
a(1)
a = fn (x) { return (x * 2)
3
}
a(1)
a = fn (x) { return x * 2 ; 3 }
a(3)
a = fn (x) { return (x * 2) ; 3 }
a(3)
a = fn (x) { return x * 2
3
}
a(3)
quote x * 2; 3
a = fn (x) {
return x * 3
1
}
a(2)
a = fn (x) {
return_from :a x * 3
1
}
a(3)
block :abc do
123
return 2
1
end
block :abc do
123
return_from :abc 2
1
end
block :abc do
if 2 > 4 do
return -1
else
return 1
end
end
f = fn (x) {
if (x > 4) do
return -1
else
return 1
end
}
f(4)
f(5)
unwind_protect {
unwind_protect({
puts("a")
1
}, puts("b"))
}
block :a unwind_protect(do
puts("a")
return_from :a 1
2
end
, puts("b")
)