import std.array;
extern (C) void main() {
auto numbersINeed = staticArray([1, 2, 3, 4, 5]);
import std.range;
import std.algorithm;
import core.stdc.stdio;
// |
// V
numbersINeed[].each!(n => printf("%d ", n));
//靜态數組用區間算法.
}
[]
切換元素,來減小大小.
int example.foo(immutable(char)[]):
cmp rdi, 5
jne .LBB0_3
mov eax, 1764586337
xor eax, dword ptr [rsi]
movzx ecx, byte ptr [rsi + 4]
xor ecx, 115
or ecx, eax
je .LBB0_2
.LBB0_3:
mov eax, 100
ret
.LBB0_2:
mov eax, 200
ret