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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Close
  • 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 on Dec 3, 2019 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 on Apr 15, 2019 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 on Jan 19, 2019 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
    10,980 Points

    type annotation: ([Int]) ?

    Posted on Dec 26, 2018 by Omar De Yamlor
    Omar De Yamlor
    10,980 Points
    • iOS
    • Closures in Swift
    • Building Standard Library Functions
    • Using Flat Map

    2 Answers

  • Omar De Yamlor
    Omar De Yamlor
    10,980 Points

    flatMap deprecated (Swift 4.2) ?

    Posted on Dec 26, 2018 by Omar De Yamlor
    Omar De Yamlor
    10,980 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 on Jun 25, 2017 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 on Jun 12, 2017 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 on Jun 10, 2017 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 on May 6, 2017 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 on Mar 12, 2017 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.