You found it first ⚡ 50% off any plan for 6 months, exclusive to new subscribers for a limited time only.

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

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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

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

    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.