[iter] Simplify hb_chop()

This commit is contained in:
Behdad Esfahbod 2019-08-31 15:21:02 -05:00
parent 67ec9fa9e4
commit c9eb913f4c
1 changed files with 2 additions and 2 deletions

View File

@ -774,8 +774,8 @@ struct
hb_requires (hb_is_iterator (Iter))>
auto operator () (Iter it, unsigned count) const HB_AUTO_RETURN
(
+ hb_iota (it, hb_partial<2> (hb_add, count))
| hb_map (hb_partial<2> (hb_take, count))
+ hb_iota (it, hb_add (count))
| hb_map (hb_take (count))
| hb_take ((hb_len (it) + count - 1) / count)
)
}