Find words which contains all the vowels: Difference between revisions

add RPL
No edit summary
(add RPL)
Line 1,912:
 
</pre>
 
=={{header|RPL}}==
As RPL is a language for calculators, it is not suitable for reading large text files.
« '''IF''' DUP SIZE 10 < '''THEN''' DROP 0 '''ELSE'''
→ w
« { 5 } 0 CON
1 w SIZE '''FOR''' j
w j DUP SUB
'''IF''' "AEIOUaeiou" SWAP POS '''THEN'''
LAST 1 - 5 MOD 1 +
DUP2 GET 1 + PUT
'''END'''
'''NEXT'''
[ 1 1 1 1 1 ] ==
» '''END'''
» '<span style="color:blue">AEIOU?</span>' STO
 
"Stupefaction" <span style="color:blue">AEIOU?</span> <span style="color:grey">@ returns 1 (true)</span>
"Communication" <span style="color:blue">AEIOU?</span> <span style="color:grey">@ returns 0 (false)</span>
"Sequoia" <span style="color:blue">AEIOU?</span> <span style="color:grey">@ returns 0 (false)</span>
 
=={{header|Ruby}}==
1,150

edits