mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	boot.janet, cond doc
Arranged this way seems to make more sense.
This commit is contained in:
		| @@ -180,8 +180,8 @@ | |||||||
| (defmacro cond | (defmacro cond | ||||||
|   `Evaluates conditions sequentially until the first true condition |   `Evaluates conditions sequentially until the first true condition | ||||||
|   is found, and then executes the corresponding body. If there are an |   is found, and then executes the corresponding body. If there are an | ||||||
|   odd number of forms, the last expression is executed if no forms |   odd number of forms, and no forms are matched, the last expression | ||||||
|   are matched. If there are no matches, return nil.` |   is executed. If there are no matches, return nil.` | ||||||
|   [& pairs] |   [& pairs] | ||||||
|   (defn aux [i] |   (defn aux [i] | ||||||
|     (def restlen (- (length pairs) i)) |     (def restlen (- (length pairs) i)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Gabriele
					John Gabriele