⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

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

  • 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
      • • 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
  • Ronit Mankad
    Ronit Mankad
    12,166 Points

    Unknown Error!

    Posted September 29, 2016 4:55pm by Ronit Mankad
    Ronit Mankad
    12,166 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Abderrahim Gdah
    Abderrahim Gdah
    1,326 Points

    i didn't understand what does it mean ?

    Posted July 23, 2016 1:16pm by Abderrahim Gdah
    Abderrahim Gdah
    1,326 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    0 Answers

  • Batuhan Ertas
    Batuhan Ertas
    1,159 Points

    can anyone say what's wrong with that code?

    Posted July 17, 2016 8:34pm by Batuhan Ertas
    Batuhan Ertas
    1,159 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    0 Answers

  • Kieran Tross
    Kieran Tross
    8,266 Points

    In an extension to the String type, add a function named modify. The modify function should accept as an argument a func

    Posted July 13, 2016 1:44am by Kieran Tross
    Kieran Tross
    8,266 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    3 Answers

  • patrick ridd
    patrick ridd
    21,011 Points

    I can't find a String.CharacterView method that returns first letter as String in the documentation. Any luck anyone?

    Posted July 12, 2016 3:15am by patrick ridd
    patrick ridd
    21,011 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Napatchol Thaipanich
    PLUS
    Napatchol Thaipanich
    Courses Plus Student 13,534 Points

    how to do it

    Posted June 19, 2016 11:05am by Napatchol Thaipanich
    Napatchol Thaipanich
    Courses Plus Student 13,534 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Tyler Travis
    Tyler Travis
    2,429 Points

    My code functions properly in Xcode and performs correctly but doesn't pass the test. What is going wrong?

    Posted June 18, 2016 5:28am by Tyler Travis
    Tyler Travis
    2,429 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Tyler Travis
    Tyler Travis
    2,429 Points

    What am I doing wrong? Perhaps I am just misunderstanding the question.

    Posted June 17, 2016 7:38am by Tyler Travis
    Tyler Travis
    2,429 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    0 Answers

  • Mingzhe Zheng
    Mingzhe Zheng
    27,273 Points

    No idea how to get the first letter in String

    Posted June 16, 2016 3:35am by Mingzhe Zheng
    Mingzhe Zheng
    27,273 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    3 Answers

  • Javier Porras
    Javier Porras
    11,382 Points

    Stuck on task 2 of 3; extending String, and function code.

    Posted June 9, 2016 5:51pm by Javier Porras
    Javier Porras
    11,382 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Arsene Lavaux
    Arsene Lavaux
    4,342 Points

    Extract first character of Swift String object instance using the characters property

    Posted June 4, 2016 7:46pm by Arsene Lavaux
    Arsene Lavaux
    4,342 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    2 Answers

  • Josep Bordes
    Josep Bordes
    7,752 Points

    I don't know how to use the property characters. I m using String(string.characters.first).

    Posted May 31, 2016 6:16pm by Josep Bordes
    Josep Bordes
    7,752 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Sheng Wei
    Sheng Wei
    4,382 Points

    [Help!] Not sure how to return the characters property in this closure

    Posted May 30, 2016 8:31am by Sheng Wei
    Sheng Wei
    4,382 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • nicholasdevereaux
    nicholasdevereaux
    16,353 Points

    Closures - Challenge Task 3 of 3. How does this code know to return the first letter in a string?

    Posted May 21, 2016 11:57am by nicholasdevereaux
    nicholasdevereaux
    16,353 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • nicholasdevereaux
    nicholasdevereaux
    16,353 Points

    Closures - how to use 'characters' property without force unwrapping?

    Posted May 21, 2016 11:39am by nicholasdevereaux
    nicholasdevereaux
    16,353 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Ignacio Opazo
    Ignacio Opazo
    8,950 Points

    Hi guys, i'm trying to get the last step in this exercise, but i stucked in this part of code...

    Posted May 16, 2016 2:06pm by Ignacio Opazo
    Ignacio Opazo
    8,950 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • khoipro
    khoipro
    10,821 Points

    I've got an issue with Closures in Swift 2's challenge

    Posted May 15, 2016 2:38pm by khoipro
    khoipro
    10,821 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    0 Answers

  • Akshay Kalbhor
    PLUS
    Akshay Kalbhor
    Courses Plus Student 725 Points

    firstLetter function in Challenge Task 2 of 3

    Posted May 12, 2016 8:07am by Akshay Kalbhor
    Akshay Kalbhor
    Courses Plus Student 725 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    1 Answer

  • Johann Peters
    Johann Peters
    40,749 Points

    Something's messed up in this challenge!?

    Posted May 6, 2016 11:04am by Johann Peters
    Johann Peters
    40,749 Points
    • iOS
    • Closures in Swift 2
    • First Class Functions
    • Higher Order Functions

    3 Answers

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.