Hash :
097391e6
Author :
Thomas de Grivel
Date :
2024-02-18T13:34:40
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
if(true, 1, 2)
if(false, 1, 2)
if(false, 1 + 1, 2 + 2)
if(true, 1 + 1, 2 + 2)
1 + 1
1 + 100000000000000000000000000000000000000
hello = fn (name) { "Hello, #{name} !" }
hello("Guillaume")
m = macro (name) { quote "Hello, " + name + " !" }
m("123")
if(true, 1, 2)
%{name: "Guillaume", food: "sushis"}
user = %{name: "Guillaume", food: "sushis"}
greet = fn (%{name: n, food: f}) do
"Hello, #{n}, do you want a #{f} ?"
end
u
user2A
greet(user)
greet = fn (%{name: name, food: food}) do
"Hello, #{name}, do you want a #{food} ?"
end
greet(user)
g = user
g = ^ user
g
l = %{name: "Labrass", food: "fondue"}
greet(user)
greet(l)
greet(g)
[g, l]
List.map(greet, [g, l])
List.map([g, l], greet)
List.reverse(List.map([g, l], greet))
List.reverse([1, 2, 3])
123 & 123
123 | 123
123 bor 123
123 bor 0
List.reverse([1, 2, 3])
dlopen("libc3/window/.libs/libc3_window_debug.so")
dlopen("libc3/window/sdl2/.libs/libc3_window_sdl2.so")
%GL.Object{}
name = "Plop"
m = macro (name) { quote "Hello, " + name + " !" }
m(name)
m(^ name)
name = "Plop"
m = macro (name) { quote "Hello, " + unquote name + " !" }
name = "Plop"
m = macro (name) { quote "Hello, " + unquote name + " !" }
m(name)
m("Plop")
m(^ name)
m = macro (name) { quote "Hello, " + unquote name + " !" }
name = "Plop"
^ name = plop
plop
name
name = "Plop"
m = macro (name) { quote "Hello, " + unquote name + " !" }
m(name)
m(^name)
m(^ name)
m = macro (name) { quote "Hello, " + unquote name + " !" }
name = "Plop"
m(name)
m = macro (name) { quote "Hello, " + unquote name + " !" }
name = "Plop"
m(name)
m(^ name)
name
type(name)
m(name)
n = "123"
m(n)
n
m(n)
m = macro (name) { quote "Hello, " + unquote name + " !" }
n = "123"
m(n)
1 + 1
m = macro (name) { quote "Hello, " + unquote name + " !" }
m("Patrice")
m = macro (name) { quote "Hello, " + (unquote name) + " !" }
m("Patrice")
variable = "Patrice"
m(variable)
quote "Hello, " + (unquote name) + " !"
name = quote n; quote "Hello, " + (unquote name) + " !"
name = quote n ; quote "Hello, " + (unquote name) + " !"
name = quote n
quote "Hello, " + (unquote name) + " !"
m = macro (name) { quote "Hello, " + (unquote name) + " !" }
n = "123"
m(n)
m = macro (name) { quote "Hello, " + (unquote name) + " !" }
m("Quentin")