()
| 115 | * @since 0.24.0 |
| 116 | */ |
| 117 | export const last = <A = never>(): Semigroup<A> => |
| 118 | make( |
| 119 | (_, second) => second, |
| 120 | (self, collection) => { |
| 121 | let a: A = self |
| 122 | // eslint-disable-next-line no-empty |
| 123 | for (a of collection) {} |
| 124 | return a |
| 125 | } |
| 126 | ) |
| 127 | |
| 128 | /** |
| 129 | * @since 0.24.0 |