Consonant and no consonant

Write a function @cons_nocons(f)@ that given a list f of nonempty
strings of lowercase letters, returns two lists. The first one is formed
by the words in f that contain some consonant. At the second one there
are the words in f whose letters are all vowels. The order of appearance
of the words in each of the two resulting lists must preserve the
original order.

Important condition. Solutions employing position-wise indexed access to
the argument of the function (as in @f[i]@) are not accepted.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T13:29:56.460Z

© Jutge.org, 2006–2026.
https://jutge.org
