-
Notifications
You must be signed in to change notification settings - Fork 0
Продолжение про F# #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
yurii-litvinov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Очень круто, зачтены все
| let squaresTree = | ||
| Node (1, Empty, Node (4, Empty, Node (9, Empty, Node (16, Empty, Empty)))) | ||
|
|
||
| map (( * ) 5) Empty |> should equal Tree<int>.Empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я как-то больше привык писать (*), а не ( * )
| type Expression = | ||
| | Const of int | ||
| | Operator of Operation * Expression * Expression | ||
| and Operation = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут лучше без and, тип нерекурсивный
No description provided.