Skip to main content

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

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

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

  • 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
  • Michael McKenna
    Michael McKenna
    3,451 Points

    What would be an efficient way of inserting a String into a long list?

    Posted December 8, 2015 7:55pm by Michael McKenna
    Michael McKenna
    3,451 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Vunge António
    Vunge António
    1,096 Points

    using let

    Posted September 14, 2015 8:07pm by Vunge António
    Vunge António
    1,096 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    3 Answers

  • tmsmth
    tmsmth
    10,543 Points

    Why we need to write "atIndex" instead of todo.insert("element", 3) for example ?

    Posted May 15, 2015 2:23pm by tmsmth
    tmsmth
    10,543 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    2 Answers

  • Elliott Walker
    Elliott Walker
    259 Points

    What is the difference?

    Posted May 2, 2015 8:52pm by Elliott Walker
    Elliott Walker
    259 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Shelby Hanna
    Shelby Hanna
    1,453 Points

    .append function vs. += : What is the difference?

    Posted April 10, 2015 4:06pm by Shelby Hanna
    Shelby Hanna
    1,453 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    2 Answers

  • weixin yang
    weixin yang
    312 Points

    Can you only assign string in array or variable too

    Posted March 5, 2015 4:42am by weixin yang
    weixin yang
    312 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Tom Warner
    Tom Warner
    539 Points

    What is the difference between using += and .append for arrays?

    Posted February 28, 2015 4:05am by Tom Warner
    Tom Warner
    539 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Marvin Ling
    Marvin Ling
    296 Points

    Link to Documentation

    Posted January 19, 2015 10:02am by Marvin Ling
    Marvin Ling
    296 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    2 Answers

  • kirstie perez
    kirstie perez
    312 Points

    Can you find anything wrong with this? todo.insert("Go To School", atIndex: 3)

    Posted December 30, 2014 5:32pm by kirstie perez
    kirstie perez
    312 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Unsubscribed User
    Unsubscribed User
    355 Points

    Removing item from list and assigning back as a constant or variable

    Posted December 23, 2014 5:15pm by Unsubscribed User
    Unsubscribed User
    355 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Daniel Smith
    Daniel Smith
    674 Points

    in the video he does not use "removeatindex" to show how to complete the question in the quiz.... Im confused

    Posted December 1, 2014 6:32am by Daniel Smith
    Daniel Smith
    674 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    1 Answer

  • Greg Lacombe
    Greg Lacombe
    638 Points

    Difference between todo.append and +=

    Posted November 29, 2014 2:14pm by Greg Lacombe
    Greg Lacombe
    638 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    3 Answers

  • Jan Francírek
    Jan Francírek
    1,766 Points

    Option click - how to do it

    Posted November 17, 2014 9:23am by Jan Francírek
    Jan Francírek
    1,766 Points
    • iOS
    • Swift Basics (retired)
    • Collections
    • Modifying an Array

    2 Answers

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