summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrgxgr <33611071+rgxgr@users.noreply.github.com>2019-07-02 10:13:37 +0800
committerGitHub <noreply@github.com>2019-07-02 10:13:37 +0800
commit65fe2371299ed9baf0cd488263333615baf7b97d (patch)
tree107eb5550b026c7bc64b5099b64ed612723c136a
parent84cb0e88995b6d2f04a119cc25a695a33e1cbf9f (diff)
Correct output
"Puce -> 3.5" was added to myHash before Keys[mhHash] and Values[myHash]
-rw-r--r--wolfram.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/wolfram.html.markdown b/wolfram.html.markdown
index 4514006d..5fddbc82 100644
--- a/wolfram.html.markdown
+++ b/wolfram.html.markdown
@@ -123,8 +123,8 @@ myHash[["Green"]] (* 2, use it *)
myHash[["Green"]] := 5 (* 5, update it *)
myHash[["Puce"]] := 3.5 (* 3.5, extend it *)
KeyDropFrom[myHash, "Green"] (* Wipes out key Green *)
-Keys[myHash] (* {Red} *)
-Values[myHash] (* {1} *)
+Keys[myHash] (* {Red, Puce} *)
+Values[myHash] (* {1, 3.5} *)
(* 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