guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List functions


From: Hans Aberg
Subject: Re: List functions
Date: Thu, 2 Dec 2010 17:06:06 +0100

Another problem: passing a list of length two to a function that takes two non-arguments. For example,
  (define h (lambda (x y) (display x) (display y)))
and passing (list 1 2) to it.

It is in the same context as before: I want to build functions like in Haskell
  f((1, 2), 3) where f = \((x, y), z) -> (x, y, z)
  --> (1,2,3)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]