The look-and-say sequence, also known as the Morris Number sequence, takes a sequence of numbers and returns a new sequence which describes the consecutive runs of identical numbers in the input.
This version uses partitioning and nested arrays.
Try the code now: https://is.gd/MuP2EL
https://tryapl.org
--------------------
GET STARTED
Download the latest version of Dyalog:
https://www.dyalog.com/downloads
TAKE PART IN OUR APL COMPETITIONS
THE APL CHALLENGE
Learn APL and compete for one of three $100 prizes. Open to all experience levels.
https://challenge.dyalog.com
THE APL FORGE
Got a problem to solve or a library to share?
Use Dyalog APL to build something great — and win £2,500 + an expenses-paid trip to present at a Dyalog user meeting.
https://forge.dyalog.com
--------------------