Skip to content

Better exercises for lambda and stl #416

Open
@HereThereBeDragons

Description

@HereThereBeDragons

After having a longer discussion yesterday with bernhard, i got the following idea how the difficulty of understanding lambdas and stl could be eased.

I would suggest the following exercises (in order of execution):

  1. lambda simple: exercise to write simple lambda function, maybe even start with rewritting an existing function by a lambda - no usage of stl
  2. lambda and stl - simple: rewrite an (existing & fully functioning) program that uses stl with function object to replace these function objects with lambdas
  3. lambda and stl - advanced: have an unfinished program where stl functions and their respective lambdas must be added. could be that in the readme there is a list of possible stl functions to decide from

Metadata

Metadata

Assignees

No one assigned

    Labels

    EssentialsContent for the "essentials" coursestale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions