Search⌘ K
AI Features

Fix the Flavors: Exercise

Explore how to manipulate data using RamdaJS lenses in this exercise. Learn to write point-free functions that capitalize flavor names and append descriptive text, enhancing your functional programming skills.

We'll cover the following...

You’re having fun with these exercises, so let’s start manipulating data!

Using lenses, write a point-free solution that

  1. Capitalizes all the flavors
  2. Appends “IS A GREAT FLAVOR” to each one
  3. Returns them

Here’s the end result we’re looking for

Javascript (babel-node)
import employees from './employees.json';
const result = emphasizeFlavors(employees);
console.log({ result });

I’ll see you in the solution review!

Javascript (babel-node)
import { } from 'ramda';
import employees from './employees';