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
  • Oscar Armenta
    Oscar Armenta
    641 Points

    Type [T] to type [U]

    Posted November 3, 2019 6:48am by Oscar Armenta
    Oscar Armenta
    641 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    0 Answers

  • Juan Jimenez
    Juan Jimenez
    4,389 Points

    I think there is an error in this course

    Posted June 3, 2019 5:01pm by Juan Jimenez
    Juan Jimenez
    4,389 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Gavin Hobbs
    Gavin Hobbs
    5,205 Points

    Is Something Wrong With the Exercise?

    Posted October 1, 2018 8:09pm by Gavin Hobbs
    Gavin Hobbs
    5,205 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • aaron du
    aaron du
    5,946 Points

    generic functions with multiple type parameters

    Posted June 20, 2018 7:20am by aaron du
    aaron du
    5,946 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • john lau
    john lau
    3,471 Points

    error: type '(T) -> U' has no subscript members return transformation[array]

    Posted April 23, 2018 3:11am by john lau
    john lau
    3,471 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    6 Answers

  • Sam Belcher
    Sam Belcher
    3,719 Points

    Generic Functions With Multiple Type Paremeters

    Posted March 18, 2018 12:37am by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Sam Belcher
    Sam Belcher
    3,719 Points

    Generic Functions With Multiple Type Parameters

    Posted March 15, 2018 2:51am by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Sam Belcher
    Sam Belcher
    3,719 Points

    Generic Functions With Multiple Type Parameters

    Posted March 13, 2018 12:57am by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Everton Carneiro
    Everton Carneiro
    15,994 Points

    error: '([T]) -> U' is not convertible to '(T)

    Posted October 25, 2017 2:31am by Everton Carneiro
    Everton Carneiro
    15,994 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    2 Answers

  • Sergio Alen
    Sergio Alen
    26,726 Points

    Code works in xcode playground but not in the challenge

    Posted August 13, 2017 4:02am by Sergio Alen
    Sergio Alen
    26,726 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    2 Answers

  • Venkata Harish Mullapudi
    PLUS
    Venkata Harish Mullapudi
    Courses Plus Student 46 Points

    I wrote a piece of code and it works in the Xcode playground. But the Challenge question keeps complaining

    Posted April 21, 2017 10:44pm by Venkata Harish Mullapudi
    Venkata Harish Mullapudi
    Courses Plus Student 46 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Shane Hartman
    Shane Hartman
    1,534 Points

    My code runs correctly in xcode but it doesn't pass the review process

    Posted April 10, 2017 7:10pm by Shane Hartman
    Shane Hartman
    1,534 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • Roland Schützenhofer
    Roland Schützenhofer
    4,311 Points

    Your code could not be compiled. But there aren't any Errors in the Preview Section.

    Posted April 6, 2017 12:21pm by Roland Schützenhofer
    Roland Schützenhofer
    4,311 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    1 Answer

  • james gamber
    james gamber
    7,727 Points

    generics in swift 3 challenge task 1 of 1

    Posted March 10, 2017 10:05pm by james gamber
    james gamber
    7,727 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    2 Answers

  • Wesley Lang
    Wesley Lang
    14,612 Points

    In the editor define a function named map with two generic type parameters, T and U. The function takes two arguments -

    Posted February 19, 2017 8:52pm by Wesley Lang
    Wesley Lang
    14,612 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    3 Answers

  • Dhanish Gajjar
    Dhanish Gajjar
    20,185 Points

    Generics in Swift 3, Challenge 2

    Posted February 16, 2017 1:31pm by Dhanish Gajjar
    Dhanish Gajjar
    20,185 Points
    • iOS
    • Generics in Swift
    • Generic Functions, Parameters and Constraints
    • CSS Background Blend Modes Challenge

    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