键盘快捷键

使用 跳转章节

使用 S/ 在本书内搜索

使用 ? 显示帮助页面

使用 Esc 隐藏帮助页面

Unit

Unit[]

Returns the Unit value, which represents the absence of a meaningful value.

  • Returns Unit[]. When printed, it displays as ().
Unit[];  (* => () *)

Update

Update[symbol, value]

Modifies the binding of symbol in its original scope to value. Unlike Let, which creates a local shadow, Update affects the variable in the enclosing environment.

  • Returns Unit[].
Let[a, 10];
Block[Update[a, 20]];
Print[a];  (* => 20 *)

Uppercase

Uppercase[s]

Converts all characters in string s to uppercase.

  • Returns a new String.
Uppercase["hello world"];  (* => "HELLO WORLD" *)
Uppercase["ksl"];          (* => "KSL" *)

Use

Use[module, member]

Accesses a member member from a previously loaded module.

  • module is the symbol bound via Load.
  • member is the symbol to retrieve from the module.
  • Returns the value of member from the module.
Load[ss, "std/string"];
Use[ss, Capitalize]["ksl"];  (* => "Ksl" *)