Haskell Scraps

Scrap User Syntax License Created Updated
xor in Haskell `xor` function/operator in Haskell
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
bellrand.hs Generate random numbers with a normal distribution
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
binsearch.hs Perform a binary search on a list, returning either an element or an index
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
cross.hs Cartesian cross product of one or more lists
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
Maybe list subscripting Like (!!), but wrapped in a Maybe in case the index is beyond the bounds of the list
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
set<->list Convert a list to a set and vice versa
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
Index.hs Assign contiguous indices to the elements of a list of ordered values
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
Corecursive, infinite primes list A pair of functions which use each other to produce an infinite list of prime numbers
axman6 Haskell New/Simple BSD 10 Jan 2010 7 years, 5 months ago
packBits.hs Pack & unpack bits into bytes in ascending or descending order
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
fragment.hs Splits a list into contiguous sublists of fixed length
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
Ternary.hs Ternary/conditional operator in Haskell (It's shorter than if/else/then)
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
trim.hs Remove leading & trailing whitespace from a String
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
findSublist.hs Find a sublist/substring in a list/string
jwodder Haskell Public Domain 16 Jan 2010 7 years, 5 months ago
shuffle.hs Randomly reorder the elements of a list
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
indexGrid.hs Assign coordinates to the elements of a two-dimensional list. This is useful for composing Arrays.
jwodder Haskell Public Domain 22 Jan 2010 7 years, 5 months ago
pick.hs Return an element from a list at random
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
replaceElem.hs Change one or more elements of a list
jwodder Haskell Public Domain 12 Jan 2010 7 years, 5 months ago
Prime factor finder A somewhat fastish function for finding prime factors of Integers
tags: Haskell Prime
axman6 Haskell Public Domain 10 Jan 2010 7 years, 5 months ago
Two-argument function composition Like (.), but for function pairings that take an extra argument on one side or the other
jwodder Haskell Public Domain 22 Jan 2010 7 years, 5 months ago
Combinators.hs Various well-known lambda calculus combinators
jwodder Haskell Public Domain 13 Jan 2010 7 years, 5 months ago
Splitting lists Split a list at all occurrences of an element or a sublist
jwodder Haskell Public Domain 22 Jan 2010 7 years, 5 months ago

Page:

1