3 ms·
The ones that I occasionally use: 0+ - venus - numification: When you really need a scalar value to be represented as a number and not as a string. Useful when
by ceronman 11y ago
The ones that I occasionally use:
0+ - venus - numification: When you really need a scalar value to be represented as a number and not as a string. Useful when you're generating JSON and you need the types to be correct.
@{[ ]} - baby cart - list string interpolation: This is very useful when you need to interpolate arbitrary expressions inside a list. Useful when you're generating an SQL query, for example:
SELECT * FROM Office WHERE id IN (@{[ join(',', ('?') x @ids) ]})
!! - bang bang - boolean conversion: When you want to return a boolean value from a function, but you don't want to leak implementation details.
,=> - winking fat comma - non-stringifying fat comma When you want to create a hash whose keys are constants.