initsHaskell
Created by
shriramcs
Given a list, return a list of all its prefixes in ascending order of their length. You’re essentially implementing the inits function in Haskell!

Given a list, return a list of all its prefixes in ascending order of their length. You’re essentially implementing the inits function in Haskell!