# \#lambda

**URL:** https://forum.elixirforum.com/tag/lambda/2200.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [What are the reasons behind Elixir's lambda syntax?](https://forum.elixirforum.com/t/what-are-the-reasons-behind-elixirs-lambda-syntax/58964)

<div class="topic-metadata">

**Author:** [@JsonKody](https://forum.elixirforum.com/u/JsonKody)\
**Replies:** 30\
**Last updated:** [October 18, 2023, 4:33pm UTC](https://forum.elixirforum.com/t/what-are-the-reasons-behind-elixirs-lambda-syntax/58964 "2023-10-18T16:33:35Z")

</div>

This is highly subjective but in my mind Haskell and Ruby/Rust has one of the most beautiful lambda syntax \\a b → a + b and |a, b| a + b so if Elixir syntax is mostly form Ruby why they ditched one of the most beauti…

---

## [When is Oban preferred over AWS Lambda?](https://forum.elixirforum.com/t/when-is-oban-preferred-over-aws-lambda/49939)

<div class="topic-metadata">

**Author:** [@kanishka](https://forum.elixirforum.com/u/kanishka)\
**Replies:** 15\
**Last updated:** [September 7, 2022, 4:18am UTC](https://forum.elixirforum.com/t/when-is-oban-preferred-over-aws-lambda/49939 "2022-09-07T04:18:12Z")

</div>

When do people choose Oban instead of AWS Lambda for async processing?

---

## [How to define recursive anonymous function in Elixir?](https://forum.elixirforum.com/t/how-to-define-recursive-anonymous-function-in-elixir/38024)

<div class="topic-metadata">

**Author:** [@pichi](https://forum.elixirforum.com/u/pichi)\
**Replies:** 7\
**Last updated:** [March 11, 2021, 2:10pm UTC](https://forum.elixirforum.com/t/how-to-define-recursive-anonymous-function-in-elixir/38024 "2021-03-11T14:10:50Z")

</div>

How can I define the recursive anonymous function in Elixir? In Erlang, I can write: 1\> F = fun X(\[\]) -\> \[\]; X(\[H|T\]) -\> \[H+1|X(T)\] end. #Fun\<erl\_eval.20.79398840\> 2\> F(\[5,41,13\]). \[6,42,14\] I can’t find in documentati…

---

## [Constraints in Routes](https://forum.elixirforum.com/t/constraints-in-routes/29521)

<div class="topic-metadata">

**Author:** [@Sanjibukai](https://forum.elixirforum.com/u/Sanjibukai)\
**Replies:** 8\
**Last updated:** [March 2, 2020, 5:28pm UTC](https://forum.elixirforum.com/t/constraints-in-routes/29521 "2020-03-02T17:28:07Z")

</div>

Hi everybody, I wanted to know if we can have constraints in the route level. I mean defining a route with some constraints (based e.g. on the request sessions data). Sorry if I do a parallel with rails, but in rails (…
