Skip to content

HW_6#7

Open
AnNyiiik wants to merge 3 commits intomainfrom
HW_6
Open

HW_6#7
AnNyiiik wants to merge 3 commits intomainfrom
HW_6

Conversation

@AnNyiiik
Copy link
Owner

No description provided.

@AnNyiiik AnNyiiik changed the title added solution HW_7 Apr 30, 2024
@AnNyiiik AnNyiiik changed the title HW_7 HW_6 Apr 30, 2024

type RounderBuilder(accuracy : int) =
member this.Bind(x : float, func) =
func x

Choose a reason for hiding this comment

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

здесь так же необходимо округлять x, иначе дальше передастся неожиданное значение

image

return x + y
} |> should equal (Some 8)

[<Test>]

Choose a reason for hiding this comment

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

а до двух знаков?


type RounderBuilder(accuracy : int) =
member this.Bind(x : float, func) =
func x

Choose a reason for hiding this comment

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

Suggested change
func x
func (Math.Round(x, accuracy))

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