Skip to content

Instantly share code, notes, and snippets.

@thangarajan8
Created July 22, 2014 15:22
Show Gist options
  • Save thangarajan8/4fcfa83b1fad6c49eb74 to your computer and use it in GitHub Desktop.
Save thangarajan8/4fcfa83b1fad6c49eb74 to your computer and use it in GitHub Desktop.
makeCacheMatrix <- function(x = numeric()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() x
setsolve <- function(solve) s <<- solve
getsolve <- function() s
list(set = set, get = get,
setsolve = setsolve,
getsolve = getsolve)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment