Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Conversation

@Tuxified
Copy link
Contributor

@Tuxified Tuxified commented Feb 4, 2021

just like function and case clause lambdas can have guard clauses following a
pattern. ex:

Falsefib = fun
(0) -> 0;
(1) -> 1;
(N) when N > 1 -> (N - 2) + (N - 1);
(Y) -> {error, bad_argument}
end.

just like function and case clause lambdas can have guard clauses following a
pattern. ex:

Falsefib = fun
  (0) -> 0;
  (1) -> 1;
  (N) when N > 1 -> (N - 2) + (N - 1);
  (Y) -> {error, bad_argument}
end.
Copy link
Member

@leostera leostera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good 🚀

@leostera leostera merged commit 7b436e1 into AbstractMachinesLab:main Feb 8, 2021
@Tuxified Tuxified deleted the allow_guards_in_lambda branch February 8, 2021 11:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants