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.

✨ 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
  • Johnny Nguyen
    Johnny Nguyen
    3,875 Points

    Challenge Task 2 of Creating a Queue

    Posted April 2, 2020 3:33pm by Johnny Nguyen
    Johnny Nguyen
    3,875 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    2 Answers

  • Oscar Armenta
    Oscar Armenta
    641 Points

    Init in classes with generics

    Posted November 5, 2019 1:16am by Oscar Armenta
    Oscar Armenta
    641 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Linked List Operations

    1 Answer

  • Jun Kakeno
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jun Kakeno
    iOS Development with Swift Techdegree Graduate 24,842 Points

    Creating a generic type 5/5

    Posted September 5, 2018 5:07pm by Jun Kakeno
    .a{fill-rule:evenodd;}techdegree seal-36
    Jun Kakeno
    iOS Development with Swift Techdegree Graduate 24,842 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    2 Answers

  • john lau
    john lau
    3,471 Points

    Make sure isEmpty reflects the state of the underlying array

    Posted May 17, 2018 10:51am by john lau
    john lau
    3,471 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    4 Answers

  • Raphael Varquez
    Raphael Varquez
    4,758 Points

    Creating a Generic Type Challenge 4/5

    Posted March 6, 2018 1:50am by Raphael Varquez
    Raphael Varquez
    4,758 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Amit Yadav
    Amit Yadav
    4,662 Points

    Getting Error:Bummer! Your code could not be compiled. Please click on "Preview" but no error shown in output.html

    Posted September 30, 2017 3:39pm by Amit Yadav
    Amit Yadav
    4,662 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Kristof Kocsis
    Kristof Kocsis
    15,455 Points

    Code can't compile but no error messages are thrown

    Posted August 15, 2017 5:48pm by Kristof Kocsis
    Kristof Kocsis
    15,455 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    2 Answers

  • Zenek Barburka
    Zenek Barburka
    7,009 Points

    works in Xcode but not on the website

    Posted July 18, 2017 9:55am by Zenek Barburka
    Zenek Barburka
    7,009 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    2 Answers

  • Alphonso Sensley II
    Alphonso Sensley II
    8,514 Points

    Generic Type Challenge task 5/5: Almost got it... Can you figure out what I'm doing incorrectly?

    Posted May 17, 2017 10:54pm by Alphonso Sensley II
    Alphonso Sensley II
    8,514 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    3 Answers

  • Alphonso Sensley II
    Alphonso Sensley II
    8,514 Points

    Need help here!

    Posted May 17, 2017 8:16am by Alphonso Sensley II
    Alphonso Sensley II
    8,514 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points

    cant formulate the bool

    Posted May 2, 2017 2:30am by Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Christopher Jr Riley
    Christopher Jr Riley
    35,874 Points

    The code I wrote in the challenge was only considered correct because I changed 'let' to 'var'. Why?

    Posted April 22, 2017 8:38pm by Christopher Jr Riley
    Christopher Jr Riley
    35,874 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    0 Answers

  • Aananya Vyas
    Aananya Vyas
    20,157 Points

    i tried using codes online to get help and through documentation m unable to use this please help?

    Posted April 20, 2017 6:40am by Aananya Vyas
    Aananya Vyas
    20,157 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Aananya Vyas
    Aananya Vyas
    20,157 Points

    it shows this in the preview what am i doing wrong??

    Posted April 19, 2017 3:15pm by Aananya Vyas
    Aananya Vyas
    20,157 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Aananya Vyas
    Aananya Vyas
    20,157 Points

    code works in xcode..shows nothing in the preview!

    Posted April 1, 2017 2:17pm by Aananya Vyas
    Aananya Vyas
    20,157 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Jeff McDivitt
    Jeff McDivitt
    23,970 Points

    Generics Swift 3 - Task 5 of 5

    Posted March 11, 2017 2:16pm by Jeff McDivitt
    Jeff McDivitt
    23,970 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Jeff McDivitt
    Jeff McDivitt
    23,970 Points

    Swift 3 generics 2 of 5

    Posted March 10, 2017 1:37am by Jeff McDivitt
    Jeff McDivitt
    23,970 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    4 Answers

  • Jeff McDivitt
    Jeff McDivitt
    23,970 Points

    Need assistance with Swift generics

    Posted March 9, 2017 3:31am by Jeff McDivitt
    Jeff McDivitt
    23,970 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    5 Answers

  • Daniel Santos
    Daniel Santos
    34,969 Points

    Typo in this challenge?

    Posted March 7, 2017 6:14am by Daniel Santos
    Daniel Santos
    34,969 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Calvin Morley
    PLUS
    Calvin Morley
    Courses Plus Student 4,957 Points

    There seems to be a bug with this challenge. The code below works in my playgound yet its not being accepted.

    Posted March 1, 2017 4:35am by Calvin Morley
    Calvin Morley
    Courses Plus Student 4,957 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Bryce Vernon
    Bryce Vernon
    3,936 Points

    Generics Code Challenge Task 5 of 5

    Posted February 21, 2017 7:45pm by Bryce Vernon
    Bryce Vernon
    3,936 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    3 Answers

  • hugomontagne
    hugomontagne
    9,193 Points

    Creating a Generic Type: Task 2/5

    Posted February 21, 2017 8:50am by hugomontagne
    hugomontagne
    9,193 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    1 Answer

  • Anthony Lafont
    Anthony Lafont
    17,075 Points

    I can't figure out the answer for this challenge, need help!

    Posted February 21, 2017 7:27am by Anthony Lafont
    Anthony Lafont
    17,075 Points
    • iOS
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type

    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