Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function nth(list, n){
- if (list == null){
- return undefined;
- }
- else if(n != 0){
- return nth(list.rest, n - 1);
- }
- return list.value;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement