mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Update CHANGELOG.md and docs for loop and pp.
This commit is contained in:
		| @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. | |||||||
| - Correct arity for `marshal` | - Correct arity for `marshal` | ||||||
| - Add `flush` and `eflush` | - Add `flush` and `eflush` | ||||||
| - Add `prompt` and `return` on top of signal for user friendly delimited continuations. | - Add `prompt` and `return` on top of signal for user friendly delimited continuations. | ||||||
|  | - Fix possible segfault with malformed pegs. | ||||||
|  |  | ||||||
| ## 1.7.0 - 2020-02-01 | ## 1.7.0 - 2020-02-01 | ||||||
| - Remove `file/fileno` and `file/fdopen`. | - Remove `file/fileno` and `file/fdopen`. | ||||||
|   | |||||||
| @@ -481,7 +481,8 @@ | |||||||
|   \t:iterate - repeatedly evaluate and bind to the expression while it is truthy.\n |   \t:iterate - repeatedly evaluate and bind to the expression while it is truthy.\n | ||||||
|   \t:range - loop over a range. The object should be two element tuple with a start |   \t:range - loop over a range. The object should be two element tuple with a start | ||||||
|   and end value, and an optional positive step. The range is half open, [start, end).\n |   and end value, and an optional positive step. The range is half open, [start, end).\n | ||||||
|   \t:down - Same as range, but loops in reverse.\n |   \t:down - Same as range, but breaks the loop when the binding is less than or equal to end. | ||||||
|  |   Step should still be a positive integer.\n | ||||||
|   \t:keys - Iterate over the keys in a data structure.\n |   \t:keys - Iterate over the keys in a data structure.\n | ||||||
|   \t:pairs - Iterate over the keys value pairs in a data structure.\n |   \t:pairs - Iterate over the keys value pairs in a data structure.\n | ||||||
|   \t:in - Iterate over the values in an indexed data structure or byte sequence.\n |   \t:in - Iterate over the values in an indexed data structure or byte sequence.\n | ||||||
| @@ -1280,7 +1281,7 @@ | |||||||
|   nil) |   nil) | ||||||
|  |  | ||||||
| (defn pp | (defn pp | ||||||
|   "Pretty print to stdout or (dyn :out)." |   `Pretty print to stdout or (dyn :out). The format string used is (dyn :pretty-format "%q").` | ||||||
|   [x] |   [x] | ||||||
|   (printf (dyn :pretty-format "%q") x) |   (printf (dyn :pretty-format "%q") x) | ||||||
|   (flush)) |   (flush)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose