Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created April 9, 2018 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajjadyousefnia/b76ac20fb06264550403d759cf8ba199 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/b76ac20fb06264550403d759cf8ba199 to your computer and use it in GitHub Desktop.
val intList: List<Int> = listOf(1, 3, 4)
print(intList.max()) // will print 4
print(intSet.max()) // will print 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment