even-incr function
1 2 even-incr: func [ 3 "Increment a value so it always returns the next even number." 4 i [integer!] 5 ] [ 6 add i either even? i [2] [1] 7 ]
12946 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 even-incr: func [ 3 "Increment a value so it always returns the next even number." 4 i [integer!] 5 ] [ 6 add i either even? i [2] [1] 7 ]