This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuI learnt that the hard way - an old postQuote from: "cormullion"http://newlisper.wordpress.com/2006/09/18/my-mistake-2/"> describes my experience in tedious detail...//http://newlisper.wordpress.com/2006/09/18/my-mistake-2/
The string must begin with '0x' for hexadecimal strings or '0' (zero) for octal strings. If exp is invalid, int returns nil as a default value if not otherwise specified.Quote
(define lst '("A" "B" "C"))
(define (permuations lst i)
(if (= i 1)
;; if i = 1, then just return the list
lst
;; otherwise permutate the list with the permutations of i-1
(apply append
(map (fn (x)
(map (fn (y) (append x y))
lst))
(permuations lst (- i 1)))
2)))
(println (permuations lst 3))
(exit)
(filter (fn (x) (find-all {w{4,}} x)) vowels)
;; reverse inner list, so that only the value is an item again
(println (map
(fn (x) (first x))
;; filter out those elements with 1's
(filter
(fn (x) (not (= (last x) 1)))
(sort
;; make a list with (value, index)-items
(map
(fn (c x) (list x c))
(count (unique title-words) title-words)
(unique title-words))
;; define compariosn function
(fn (a b) (> (last a) (last b)))))))
;; reverse inner list, so that only the value is an item again
(println (map
(fn (x) (last x))
;; filter out those elements with 1's
(filter
(fn (x) (!= (first x) 1))
(sort
;; make a list with (index, value)-items
(map
list
(count (unique title-words) title-words)
(unique title-words))
>))))