Replies: 2 comments 2 replies
-
Hi! Underscore is used to denote when a variable is not used.
|
Beta Was this translation helpful? Give feedback.
-
As I understand from the documentation: https://www.liquidsoap.info/doc-2.0.3/language.html#tuples Lists and Tuples are basically arrays only difference is that lists can save the same type, but tuples can save different types? About listsAnd to access the list, we can use like in javascript Destructuring assignment https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
Is there some other way to access list element for example like this About tuplesLooks like here also works Destructuring assignment
Is there some other way to access the tuple element? |
Beta Was this translation helpful? Give feedback.
-
For example:
Liquidsoap
unit
is the same as in most of the languagesvoid
Liquidsoap
!
with in front of the exclamation mark is the same as in most of the languages&
ampersand (get value by reference)Liquidsoap function automatically return the last line in function as in most of the languages there is
return
keyword at end of functionCannot understand what means that underscore
_
eg commonly see like this-> _
Cannot understand what means that one tick in front of variable
'
eg commonly see like thissource('a)
Should be more, but this for a starting point.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions