length method

int length()

Implementation

int length() => foldLeft(0, (a, b) => a+1);