Skip to content

2016-7: 3s and 5s

Write a function that takes a numeric vector and returns all elements that are divisible by 3 or 5.

Examples:

     (your_function) 1 2 3 4 5 6 7 8 9 10
3 5 6 9 10
     (your_function) ⍬   ⍝ should return an empty vector

your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub