Skip to content

Workflow calculating strings of integers is ready#11

Open
viktoriia-fomina wants to merge 3 commits into
masterfrom
WorkflowStrings
Open

Workflow calculating strings of integers is ready#11
viktoriia-fomina wants to merge 3 commits into
masterfrom
WorkflowStrings

Conversation

@viktoriia-fomina
Copy link
Copy Markdown
Owner

No description provided.

/// Implements interface letting calculate strings of integer numbers.
type CalculateBuilder() =
member this.Bind(x : string, f) =
if Seq.length x = ((Seq.filter (fun c -> Char.IsDigit(c)) x) |> Seq.length) then (f <| Int32.Parse(x)).ToString() else "None"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ой. Это Int32.TryParse неправильный? :)

Copy link
Copy Markdown

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Окей, зачтена

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants