How do you create a list-based matrix of 1\'s with given row and column counts? For example, like:
1
row=3,column=4 -> [[1,1,1,1],[1,1,1,1],[1,1,1
You can do this with replicate:
replicate
onesMatrix rows cols = replicate rows (replicate cols 1)