From f39528fe0792e426497dd2f527ad7659aa16ec25 Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Mon, 31 Aug 2020 15:03:57 +0100 Subject: [PATCH] =update news for RegexMatch iterating --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index f5080a1448f11c..56937a199241b8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -84,6 +84,7 @@ Standard library changes * `push!(c::Channel, v)` now returns channel `c`. Previously, it returned the pushed value `v` ([#34202]). * `RegexMatch` objects can now be probed for whether a named capture group exists within it through `haskey()` ([#36717]). * A new standard library `TOML` has been added for parsing and printing [TOML files](https://toml.io) ([#37034]). +* `RegexMatch` now iterate to give their captures. This means you can write `foo(::Noting)` and `foo((cap1, cap2)::RegexMatch)` to dispatch on if `match` found anything or not ([#34355]). #### LinearAlgebra * New method `LinearAlgebra.issuccess(::CholeskyPivoted)` for checking whether pivoted Cholesky factorization was successful ([#36002]).