Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

golang for loop

// Reverse a
for i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {
    a[i], a[j] = a[j], a[i]
}
Source by go.dev #
 
PREVIOUS NEXT
Tagged: #golang #loop
ADD COMMENT
Topic
Name
7+3 =