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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • 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

  • 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.

    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.