I would like to parse a big sentence, which can contain names in fsharp. I posit that names is in the form first name + last name. In the absence of a first name list (can t find, will do later), I say that a first name is a string of length 4 or more, same for the last name.
我在审判我的非常聪明的教职
let firstorlastname x = (parray 4 letter) x
firstorlastname "JEAN"
firstorlastname "CHRISTOPHE"
因此,它既能发挥作用,但问题是它只消耗了4个特性,而这正是Christophe所期望的行为。 我想用整个字。
我怎么能够指示菲律宾武装部队消费整个字,但如果字数少于4个,则失败吗?