Skip to content
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

use def instead of val #211

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

use def instead of val #211

wants to merge 3 commits into from

Conversation

xhudik
Copy link
Contributor

@xhudik xhudik commented Mar 30, 2021

the original val cond: (Int, Int) => Boolean = has to be pretty hard for beginners (no notion about _ before, also functions (val) are not so common than procedures def.
Therefore I'd suggest to:

def cond(a: Int, b: Int): Boolean =

which is a standard def with named variables: a,b

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.

None yet

2 participants