问题描述:

I have a question:

type Diversion = Pile[]

// allPilesEmpty: Diversion -> bool

I'm new in F#, and I have such an implementation to do.

Could you help me how to implement allPilesEmpty function?

Thanks.

网友答案:
  type Diversion = Pile array

  let allPilesEmpty (diversion:Diversion) =
    diversion.Length = 0

Something like this maybe?

相关阅读:
Top