From 65fe2371299ed9baf0cd488263333615baf7b97d Mon Sep 17 00:00:00 2001 From: rgxgr <33611071+rgxgr@users.noreply.github.com> Date: Tue, 2 Jul 2019 10:13:37 +0800 Subject: Correct output "Puce -> 3.5" was added to myHash before Keys[mhHash] and Values[myHash] --- wolfram.html.markdown | 4 ++-- 1 file 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 -- cgit v1.2.3