(defmodule leap (export (leap-year 1))) (defun leap-year ([year] (when (=:= (rem year 400) 0)) 'true) ([year] (when (=:= (rem year 100) 0)) 'false) ([year] (when (=:= (rem year 4) 0)) 'true) ([_] 'false))
Lisp Flavoured Erlang (AKA LFE) is a lisp syntax front-end to the Erlang compiler. Code produced with it is compatible with "normal" Erlang code. LFE is a (proper) Lisp based on the features and limitations of the Erlang VM.
LFE has many origins, depending upon whether you're looking at Lisp, Erlang, or LFE-proper. The LFE community of contributors embraces all of these and more.
LFE is a Lisp-2. In Lisp-2, the rules for evaluation in the functional position of a form are distinct from those for evaluation in the argument positions of the form. In addition, LFE not only has separate value and function space but it also allows multiple function definitions for the same name. Like Erlang does.Join the LFE track
Exercism is a great website where I was able to have some very interesting challenges.
These are a few of the 30 exercises on the LFE track. You can see all the exercises here.