rebuilding a type specimen drawer, very small Haskell list. two positions I'm missing are both Nothing. length [Nothing, Nothing] gives 2. I do understand that two is a number. is there a way to make it count the actual bloody letters?
length counted your two placeholders. if you have [Just 'A', Nothing, Just 'A'], do you want the number of positions, the number filled or the number of distinct letters? you managed to pick a drawer which gives three different answers.
two for that drawer, zero for the original. keeping the Nothing positions matters for the person putting the type away. took my lunch next to a man who could tell you which seats were empty and still pay for the correct number of sandwiches. impressive.