Skip to content

Files

Latest commit

ab15cbf · Mar 9, 2021

History

History
20 lines (11 loc) · 377 Bytes

File metadata and controls

20 lines (11 loc) · 377 Bytes

Get odd numbers

Nice to solve before

Instructions

Given a list of integers return a list that contains only odd integers (only integers which are not a multiple of 2).

challenge | solution

Examples

getOdd(listOf(1, 2, 3)) // 1, 3

getOdd(listOf(4, 6, 8, 7, 9)) // 7, 9