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.
moduleis the symbol bound viaLoad.memberis the symbol to retrieve from the module.- Returns the value of
memberfrom the module.
Load[ss, "std/string"];
Use[ss, Capitalize]["ksl"]; (* => "Ksl" *)