Maybe you already know, but factor doesn't use lists in the same
capacity as scheme and other lisp-variants. Instead it uses sequences.
So to construct a one-item sequence where the first element is f (~=
nil):

IN: scratchpad f 1array

Or just use a literal:

IN: scratchpad { f }

2015-07-03 11:14 GMT+02:00 Iain Gray <iaing...@ednet.co.uk>:
> in Scheme I can evaluate (list ‘()) to get ‘(())
> as a nested null list
>
> Factor supplies nil (+nil+) but I can’t seem to get the above using cons, 
> 1list etc.
> is this not the natural way to do this in Factor?
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk



-- 
mvh/best regards Björn Lindqvist

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to