# Julia, 9 bytes

<!-- language-all: lang-default -->

    n->eye(n)

This is a lambda function that accepts an integer `n` and returns an `nxn Array{Float64,2}` (i.e. a 2D array). To call it, assign it to a variable.