Skip to content

Instantly share code, notes, and snippets.

View catchouli's full-sized avatar
💭
type 2 invested entity

Caitlin Wilks catchouli

💭
type 2 invested entity
View GitHub Profile
module Main where
import Control.Monad.Random
import Data.Char
-- | Get all word ranges in string
accumWords :: (Char -> Bool) -> String -> [String]
accumWords pred str = allWords
where (last, others, _) = foldl accumWords' ("", [], True) str
allWords = others ++ [last]
@catchouli
catchouli / back
Last active October 26, 2024 21:49
Anki chessground card with pgn seeking
{{FrontSide}}
<hr id=answer>
<div id="controls">placeholder text</div>
<script type="module">
import {
init,
classModule,