Hash :
1ae6ad0e
Author :
Thomas de Grivel
Date :
2024-07-15T19:59:52
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
Plop.a
defmodule Plop do def a = 1; def double = fn (x) { x * 2 } end
Plop.a
Plop.double
Plop.double(21)
def a = 1
a
def double = fn (x) { x * 2 }
double(42)
defmodule Tiyon do
def a = 1
def double = fn (x) { x * 2 }
def double_tuple = macro (x) do {x, x} end
def double_list = macro (x) do [x, x] end
end
Tiyon.a
Tiyon.double(21)
Tiyon.double_tuple(21)
Tiyon.double_tuple(21 + 21)
Tiyon.double_list(21 + 21)
[42, x] = Tiyon.double_list(21 + 21)
[42, x] = [42, 42]
x
Tiyon.double_list(21 + 21) = [42, y]
def last = fn (x) do
[y | _] = List.reverse(x)
y
end
def last = fn (x) do
[y | _] = List.reverse(x)
y
end
def List.last = fn (x) do
[y | _] = List.reverse(x)
y
end
List.last([1, 2, 3, 4])
def List.last = fn (x) do
[y | z] = List.reverse(x)
y
end
List.last([1, 2, 3, 4])
[x, y | z] = List.reverse([1, 2, 3])
x
y
z
[x, y | z] = List.reverse([1, 2, 3, 4])
x
y
z
if true then true end
if 42 then true end
if 0 then true end
if 0 then true else false end
List.map
List.map([1, 2, 3], fn (x) { x * 2 })
List.reverse
List.reverse([1, 2, 3])
List.reverse
List.reverse([1, 2])
def a = 1
a
module()
defmodule Plop do
def m = fn () { module() }
end
Plop.m()
module()
List.reverse([1, 2, 3])
List.reverse([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
(List) {1, 2}
?
cow 1
(Tag) cow 1
a = cow 1
a
a + 1
cow 1
type(cow 1)
cow 1 + cow 1
cow(1) + cow(1)
quote [a: 1, b: 2]
quote [{:a, 1}, {:b, 2}]
%C3.Operator{}
%GL.Vertex{}
123.456
abc.def
%{a: 1}
%{a: 1}.a
x = %C3.Operator{}
x.sym
quote x.sym
x = %C3.Operator{}
x.sym
x = %{
x = %C3.Operator{sym: :-}
x = %C3.Operator{sym: 1}
x = %C3.Operator{sym: (Sym) "1"}
x = %C3.Operator{sym: :1}