You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would also be nice with an easier way to operate with Map Set and Symbol
I'd suggest these improvements
# assigning a Map
%{a: 2, b: 3}
# assigning a set
&{a: 1, b: 4}
Assigning and referencing a symbol
:a: 2
z = :a
b: {:a: 2 :b: 3} or {:a => 2 :b => 3}
# Object.assign (get rid of << and >> for indentation, are they ever useful?)
Object.assign(a, b, c)
a << b << c
Alternative to 'wait (similar to yield or await in async/await)
personId <- findPerson 8
a <- getAds personId
Just some idea ;)
The text was updated successfully, but these errors were encountered:
kristianmandrup
changed the title
Optionally add function pattern matching and guard clauses similar to elixirscript
Function pattern matching and guard clauses similar to elixirscript
Mar 6, 2017
kristianmandrup
changed the title
Function pattern matching and guard clauses similar to elixirscript
Function guard clauses similar to elixirscript
Mar 7, 2017
Would be pretty simple reusing tailored also used by elixirscript
elixir-guard-clauses
The
when
would just become the first line in the function and do an early return if not passedWould also be nice with an easier way to operate with Map
Set and Symbol
I'd suggest these improvements
Just some idea ;)
The text was updated successfully, but these errors were encountered: