Skip to content

Add exercise to train simplification of if-else-expressions #773

Open
@valterbergstrand

Description

@valterbergstrand

Title explains but an example would be something in the line of:

def isTrue(): Boolean = 
  if boolsktVärde == true then true
  else false

can be simplified to

def isTrue(): Boolean =
  boolsktVärde

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions