Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keywords

Reserved words and their spelling in each language.

English中文日本語한국어ไทยDescription
bind令束縛바인드ผูกBind a value or function to a name.
do执実行실행ทำBlock expression do { … }.
fn函関数함수ฟังก์ชันFunction type / lambda.
mod核モジュール모듈โมดูลDeclare a module.
type符型타입ชนิดDeclare a type.
if若もし만약ถ้าConditional branch.
else否他아니면มิฉะนั้นAlternative branch.
while循間동안ขณะที่Loop while a condition holds.
for历繰위해สำหรับIterate over a range or collection.
in于の中안에ในIteration source: for x in 0..10.
match配一致매치ตรงกับPattern match.
return归戻る반환คืนค่าReturn a value from a function.
own独所有소유เป็นเจ้าของOwnership: take ownership.
lend借貸す빌려ให้ยืมOwnership: borrow immutably.
share共共有공유แบ่งปันOwnership: shared reference.
move移移動이동ย้ายOwnership: move value.
copy复複製복사คัดลอกOwnership: copy value.
async异非同期비동기อะซิงค์Mark a function/block asynchronous.
wait待待つ기다려รอAwait an async value.
as为として로서เป็นType cast / alias.
wherewherewherewherewhereConstraint clause.
post出投稿게시ส่งReturn a value (idiomatic return).
give予渡す전달ให้Yield / return a value.
fitfitfitfitจับคู่Pattern / refinement.
form形形형태รูปแบบConstruct a form / struct.
choose选選ぶ선택เลือกEnum / selection construct.
can能できる가능สามารถCapability / permission.
change变変える변경เปลี่ยนแปลงMutate a binding.
stop止停止멈춤หยุดBreak out of the loop.
again继続ける계속ทำอีกContinue the loop.
try试試す시도ลองFallible expression.
sure确確か확실แน่นอนAssert success.
maybe或多分아마도อาจจะOptional value.
pure纯純粋순수บริสุทธิ์Mark as pure (no side effects).
spawn启起動생성สร้างSpawn a concurrent task.
ok可良い좋아ตกลงSuccess result.
bad误悪い나쁨ผิดพลาดError result.
none无なし없음ไม่มีAbsent value.
start始開始시작เริ่มProgram entry point: bind start = do { … }.
result果結果결과ผลลัพธ์Result value.