We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8870147 commit 11a3ba5Copy full SHA for 11a3ba5
cachematrix.R
@@ -20,7 +20,7 @@ makeCacheMatrix <- function(x = matrix()) {
20
# If altx is already set (non-NULL), then we're invalidating the cache;
21
# otherwise we're just initializing it.
22
if (!is.null(altx)) message("invalidating cache")
23
- altx <<- NULL
+ set_alt(NULL)
24
}
25
26
# getter for `x` in the parent scope
@@ -35,7 +35,6 @@ makeCacheMatrix <- function(x = matrix()) {
35
list(set=set, get=get, set_alt=set_alt, get_alt=get_alt)
36
37
38
-
39
# The `cacheSolve` function returns the cached inverse of the matrix inside the
40
# scope accessed by the functions in `x`, solving and caching the inverse if it
41
# does not already exist.
0 commit comments