Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right.
Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right. a function that returns all words from the grid in this manner [(“MYWORD1”,Just((7,0),Back), “MYWORD2”, Just ((2,1), Up)], having as types: […]