Nix 101 Course / Section 2: The Nix language
Premium

2.8 Exercise: write takeN

Lesson 13 of 37 · 8:37

placeholder thumbnail

Sign in to watch this lesson

About this lesson

Hands-on: write takeN, a function that returns the first N elements of a list. Together with the sum exercise, this is what turns "I've seen the syntax" into "I can write it" — and it pays off for the rest of the week.