✨ 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
    • Generics in Swift
    • Generic Types
    • Creating a Generic Type
    • Close
  • Johnny Nguyen
    Johnny Nguyen
    3,875 Points

    Challenge Task 2 of Creating a Queue

    Posted on Apr 2, 2020 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 on Sep 5, 2018 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 on May 17, 2018 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 on Mar 6, 2018 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 on Sep 30, 2017 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 on Aug 15, 2017 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 on Jul 18, 2017 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 on May 17, 2017 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 on May 17, 2017 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 on May 2, 2017 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 on Apr 22, 2017 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 on Apr 20, 2017 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 on Apr 19, 2017 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 on Apr 1, 2017 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 on Mar 11, 2017 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 on Mar 10, 2017 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 on Mar 9, 2017 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 on Mar 7, 2017 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 on Mar 1, 2017 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 on Feb 21, 2017 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 on Feb 21, 2017 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 on Feb 21, 2017 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.