Scraps tagged 'Haskell'

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

Page:

1