All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists matching topic haskell

Recently created
Least recently created
Recently updated
Least recently updated
gaiety's Avatar

gaiety / toWords.hs

0 likes
0 forks
1 files
Last active 1752984559
String To List Of Words
haskell
1 toWords :: String -> [String]
2 toWords x
3 | length x == 0 = []
4 | otherwise = takeWhile (/= ' ') x : toWords (drop 1 (dropWhile (/= ' ') x))
Newer Older

Powered by Opengist ⋅ Load: 30ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ Links ⋅ Portfolio ⋅ Git