Fix the Flavors: Exercise
Using lenses, write a point-free solution to manipulate and return everyone's favorite ice cream.
We'll cover the following...
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
- Capitalizes all the flavors
- Appends “IS A GREAT FLAVOR” to each one
- Returns them
Here’s the end result we’re looking for
Press + to interact
Javascript (babel-node)
Files
import employees from './employees.json';const result = emphasizeFlavors(employees);console.log({ result });
I’ll see you in the solution review!
Press + to interact
Javascript (babel-node)
Files
import { } from 'ramda';import employees from './employees';