Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
the result of hashLikeList.R
> hash.test[["square"]](2)
[1] 4
> hash.test[["pi"]]
[1] 3.141593
>
> #probability that a random selected number is a prime number.
> 6/hash.test[["square"]](hash.test[["pi"]])
[1] 0.6079271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.