mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update groovy.html.markdown
This commit is contained in:
parent
d810a71b76
commit
35ba352668
@ -99,7 +99,7 @@ technologies.sort()
|
||||
// To sort without mutating original, you can do:
|
||||
sortedTechnologies = technologies.sort( false )
|
||||
|
||||
/*** Manipulating Lists ***/
|
||||
/*** Manipulating Lists ***/e
|
||||
|
||||
//Replace all elements in the list
|
||||
Collections.replaceAll(technologies, 'Gradle', 'gradle')
|
||||
@ -205,7 +205,7 @@ assert x == "worked"
|
||||
|
||||
displayName = user.name ? user.name : 'Anonymous'
|
||||
|
||||
//We can write like this:
|
||||
//We can write it:
|
||||
displayName = user.name ?: 'Anonymous'
|
||||
|
||||
//For loop
|
||||
|
Loading…
Reference in New Issue
Block a user