Remove vowels from a string: Difference between revisions

Added Python lambda implementation
(Added Python lambda implementation)
Line 1,432:
 
=={{header|Python}}==
===Functional===
 
Removing 3 particular Anglo-Saxon vowels from a string:
 
Line 1,479:
diffrnt, nd to id prson with gronding
in on pproch to problm in lrning nothr.</pre>
 
===One liner===
Well, almost........
<lang Python>
txt = '''
Rosetta Code is a programming chrestomathy site.
The idea is to present solutions to the same
task in as many different languages as possible,
to demonstrate how languages are similar and
different, and to aid a person with a grounding
in one approach to a problem in learning another.'''
 
print(''.join(list(filter(lambda a: a not in "aeiou",txt))))
</lang>
{{out}}
<pre>
Rstt Cd s prgrmmng chrstmthy st.
Th d s t prsnt sltns t th sm
tsk n s mny dffrnt lnggs s pssbl,
t dmnstrt hw lnggs r smlr nd
dffrnt, nd t d prsn wth grndng
n n pprch t prblm n lrnng nthr.
</pre>
 
=={{header|Quackery}}==
503

edits