Line data Source code
1 : # # Description 2 : # This example shows a simple use case for PKGNAME. 3 : # Specifically, we use the [`greeting`](@ref) function to print greetings. 4 : # 5 : # First, we import the necessary packages. 6 : using PKGNAME 7 : 8 : # Then, we run the greeting function for different names, which are numeric in this case. 9 : names = rand(10) 10 2 : for name in names 11 20 : println(greeting(name)) 12 20 : end 13 : 14 : # It's even easier with the Random extension. 15 : using Random 16 : println(greeting())