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
  • Daniel Collazo
    Daniel Collazo
    3,259 Points

    swift functions

    Posted May 7, 2016 12:45am by Daniel Collazo
    Daniel Collazo
    3,259 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    0 Answers

  • Gustav Gesar
    Gustav Gesar
    2,353 Points

    Missing argument label XXX in call

    Posted November 28, 2015 11:29am by Gustav Gesar
    Gustav Gesar
    2,353 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Antonio Montalvo
    Antonio Montalvo
    10,549 Points

    Is anyone having problems with Swift Function return type ?

    Posted November 7, 2015 4:22am by Antonio Montalvo
    Antonio Montalvo
    10,549 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Jivesh Sehgal
    Jivesh Sehgal
    742 Points

    how do you use this in swift2 ?

    Posted October 7, 2015 1:57pm by Jivesh Sehgal
    Jivesh Sehgal
    742 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    4 Answers

  • Jivesh Sehgal
    Jivesh Sehgal
    742 Points

    Is there a video where we can see the changes between swift and swift2?

    Posted October 7, 2015 10:56am by Jivesh Sehgal
    Jivesh Sehgal
    742 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Edward Cohen
    Edward Cohen
    1,152 Points

    What is the difference between printing a value and returning a value in a function

    Posted September 18, 2015 4:19am by Edward Cohen
    Edward Cohen
    1,152 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • John Scully
    John Scully
    1,018 Points

    Extra, extra credit?

    Posted July 27, 2015 5:17am by John Scully
    John Scully
    1,018 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    2 Answers

  • Raphael Lowe
    Raphael Lowe
    549 Points

    What is the definition of Parameters? What is there purpose when passing them through functions?

    Posted July 6, 2015 2:32pm by Raphael Lowe
    Raphael Lowe
    549 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Roland Shen
    Roland Shen
    7,628 Points

    I don't understand what return does

    Posted June 18, 2015 9:01pm by Roland Shen
    Roland Shen
    7,628 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Arbnor Muriqi
    PLUS
    Arbnor Muriqi
    Courses Plus Student 747 Points

    it will not let me go to the next video after i finish a task

    Posted February 23, 2015 4:41am by Arbnor Muriqi
    Arbnor Muriqi
    Courses Plus Student 747 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • tytyty
    tytyty
    4,974 Points

    Functions Extra credit challenge - please check

    Posted January 31, 2015 5:33am by tytyty
    tytyty
    4,974 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    3 Answers

  • Frank Kalmbach
    Frank Kalmbach
    6,982 Points

    fullName function Extra Credit - programming an space into return

    Posted January 16, 2015 6:02pm by Frank Kalmbach
    Frank Kalmbach
    6,982 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    2 Answers

  • Frances Angulo
    Frances Angulo
    5,311 Points

    Return vs. Println

    Posted January 3, 2015 11:15pm by Frances Angulo
    Frances Angulo
    5,311 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Marius Pratz
    PLUS
    Marius Pratz
    Courses Plus Student 2,705 Points

    Redeclaration of a Constant inside a function

    Posted December 26, 2014 11:05am by Marius Pratz
    Marius Pratz
    Courses Plus Student 2,705 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • patrtoikua
    patrtoikua
    1,871 Points

    Can you guys help me with this Return Type Function.

    Posted November 30, 2014 8:26pm by patrtoikua
    patrtoikua
    1,871 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    3 Answers

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

    How to type an Arrow on MacBook Air ?

    Posted November 24, 2014 11:16am by Jan Francírek
    Jan Francírek
    1,766 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Edwin Mhoy Silva Rifa
    Edwin Mhoy Silva Rifa
    2,631 Points

    Why use retrun types? I can´t see the mening of returning af value?

    Posted November 14, 2014 2:39pm by Edwin Mhoy Silva Rifa
    Edwin Mhoy Silva Rifa
    2,631 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    1 Answer

  • Clare Bagley
    Clare Bagley
    1,695 Points

    in Challenge task 2 of 3 of Swift Functions and Optionals - error message given for correct(working) name passing

    Posted September 30, 2014 5:32pm by Clare Bagley
    Clare Bagley
    1,695 Points
    • iOS
    • Swift Functions and Optionals
    • Functions
    • Function Return Types

    4 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