Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Stanislav Zaichenko
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Stanislav Zaichenko
    iOS Development with Swift Techdegree Student 4,929 Points

    Why this would not pass the code challenge?

    Posted December 3, 2019 5:35pm by Stanislav Zaichenko
    .a{fill-rule:evenodd;}techdegree
    Stanislav Zaichenko
    iOS Development with Swift Techdegree Student 4,929 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Filter

    1 Answer

  • Deysha Rivera
    Deysha Rivera
    5,088 Points

    Characters was obsoleted in Swift 4/5

    Posted April 15, 2019 12:56pm by Deysha Rivera
    Deysha Rivera
    5,088 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Filter

    1 Answer

  • Randell Pur
    Randell Pur
    4,934 Points

    I could use some help please

    Posted January 19, 2019 12:49am by Randell Pur
    Randell Pur
    4,934 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Filter

    1 Answer

  • Omar de Yamlor
    Omar de Yamlor
    12,272 Points

    type annotation: ([Int]) ?

    Posted December 26, 2018 1:45am by Omar de Yamlor
    Omar de Yamlor
    12,272 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Flat Map

    2 Answers

  • Omar de Yamlor
    Omar de Yamlor
    12,272 Points

    flatMap deprecated (Swift 4.2) ?

    Posted December 26, 2018 12:46am by Omar de Yamlor
    Omar de Yamlor
    12,272 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Flat Map

    1 Answer

  • Collin Argo
    Collin Argo
    5,191 Points

    Is this challenge broken?

    Posted June 25, 2017 6:27pm by Collin Argo
    Collin Argo
    5,191 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Filter

    1 Answer

  • STEVEN PENA
    STEVEN PENA
    13,928 Points

    Apply the filter function on the numbers array provided to end up with an array of odd Assign the value to a c

    Posted June 12, 2017 11:53pm by STEVEN PENA
    STEVEN PENA
    13,928 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Filter

    3 Answers

  • STEVEN PENA
    STEVEN PENA
    13,928 Points

    Use the map function to iterate over the numbers array and transform the values to their string representations. Assign

    Posted June 10, 2017 7:35am by STEVEN PENA
    STEVEN PENA
    13,928 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Map

    1 Answer

  • Shaan Marok
    PLUS
    Shaan Marok
    Courses Plus Student 1,015 Points

    DateFormatter date method

    Posted May 6, 2017 11:39pm by Shaan Marok
    Shaan Marok
    Courses Plus Student 1,015 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Map

    1 Answer

  • robertrinca
    PLUS
    robertrinca
    Courses Plus Student 11,316 Points

    The code snippet in the Teacher's notes doesn't match what's in the video, just a FYI.

    Posted March 12, 2017 5:09am by robertrinca
    robertrinca
    Courses Plus Student 11,316 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Map

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord