Find words which contains all the vowels: Difference between revisions
Find words which contains all the vowels (view source)
Revision as of 06:16, 8 August 2023
, 9 months agoadd 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}}==
|