You need to sign in or sign up before continuing.×
6 kyu

Simple macro with define-syntax-rule

Description:

Use define-syntax-rule to create a macro called last-symbol that takes an arbitrary series of symbols and returns the last symbol in the series, quoted. For example,

(last-symbol a b c)   ; returns 'c
(last-symbol (+ 1 1)) ; returns '(+ 1 1)

For this Kata, you can assume that last-symbol will always be called with at least one argument.

You are limited to lang #racket.

Macros
Fundamentals

Stats:

CreatedMar 31, 2019
PublishedMar 31, 2019
Warriors Trained155
Total Skips6
Total Code Submissions82
Total Times Completed48
Racket Completions48
Total Stars2
% of votes with a positive feedback rating73% of 22
Total "Very Satisfied" Votes11
Total "Somewhat Satisfied" Votes10
Total "Not Satisfied" Votes1
Total Rank Assessments4
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • seisvelas Avatar
  • monadius Avatar
Ad