Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Functions In Clojure

via CodeSignal

Overview

Learn how to structure your Clojure programs effectively. This course covers defining functions, handling multiple arity, working with variable arguments, and managing local bindings. You will also learn how to add documentation to your functions and metadata, enabling you to write more organized and maintainable Clojure code.

Syllabus

  • Lesson 1: Functions
    • Running Our First Clojure Functions
    • Converting Function Definitions
    • Converting Function Definitions 2
    • Calling a function
    • Enhance the Function With Player Name
    • Writing Functions for a Shooter Game
  • Lesson 2: Multiple Arity
    • Running Multi-Arity Functions
    • Add Extra Arity
    • Extending Function with Zero Arity
    • Write a Multi-Arity Function
  • Lesson 3: Variadic Functions
    • Total Score Calculation Task
    • Calculate Sum of Mission Scores
    • Calculate Total Health Easily
    • Calculate Total Number of Activities
    • Total Defense Calculation
  • Lesson 4: The let Form
    • Mastering Local Bindings in Clojure
    • Enhancing Effective Attack Power
    • Calculate Hero's Defense Power
    • Understanding Underscore Identifier
    • Printing Intermediate Attack Power
    • Calculate Effective Defense Power
  • Lesson 5: Function Meta Information and Documentation
    • Documenting Clojure Functions
    • Enhance Function Docstring
    • Adding Documentation to the Existing Function
    • Understanding Function Metadata
    • Transferring Function Docstrings to Metadata
    • Completing Function Docstrings and Metadata

Reviews

Start your review of Functions In Clojure

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.