Last active
June 27, 2023 11:55
-
-
Save fwgreen/b874c0a925ef49053475694cdb715206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let suffix n xs = List.toSeq xs |> Seq.skip (xs.Length - n) |> Seq.toList | |
let removeLast n xs = List.toSeq xs |> Seq.rev |> Seq.removeManyAt 0 n |> Seq.rev |> Seq.toList | |
let span fn xs = (List.takeWhile fn xs, List.skipWhile fn xs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment