mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
Correct output
"Puce -> 3.5" was added to myHash before Keys[mhHash] and Values[myHash]
This commit is contained in:
parent
84cb0e8899
commit
65fe237129
@ -123,8 +123,8 @@ myHash[["Green"]] (* 2, use it *)
|
|||||||
myHash[["Green"]] := 5 (* 5, update it *)
|
myHash[["Green"]] := 5 (* 5, update it *)
|
||||||
myHash[["Puce"]] := 3.5 (* 3.5, extend it *)
|
myHash[["Puce"]] := 3.5 (* 3.5, extend it *)
|
||||||
KeyDropFrom[myHash, "Green"] (* Wipes out key Green *)
|
KeyDropFrom[myHash, "Green"] (* Wipes out key Green *)
|
||||||
Keys[myHash] (* {Red} *)
|
Keys[myHash] (* {Red, Puce} *)
|
||||||
Values[myHash] (* {1} *)
|
Values[myHash] (* {1, 3.5} *)
|
||||||
|
|
||||||
(* And you can't do any demo of Wolfram without showing this off *)
|
(* And you can't do any demo of Wolfram without showing this off *)
|
||||||
Manipulate[y^2, {y, 0, 20}] (* Return a reactive user interface that displays y^2
|
Manipulate[y^2, {y, 0, 20}] (* Return a reactive user interface that displays y^2
|
||||||
|
Loading…
Reference in New Issue
Block a user