length method

int length(
  1. F fa
)

Implementation

int length(F fa) => foldLeft(fa, 0, (a, _) => a+1);