interp2 for Clojure

2020-01-14 Thread Tomasz Sulej
Check out my fastmath library: https://generateme.github.io/fastmath/fastmath.interpolation.html -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are

Clojure CLI tools under Cygwin (Windows)

2018-12-05 Thread Tomasz Sulej
Hi all, If you want to install and run Clojure CLI tools, i.e. clojure and clj under Cygwin. You just install Linux version and change line 173 where install_dir is set to the following: install_dir=`realpath.exe --relative-to=. /usr/local/lib/clojure` Reason for change is that java expects

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread Tomasz Sulej
W dniu wtorek, 17 lipca 2018 22:44:27 UTC+2 użytkownik Christian Seberino napisał: > > > data are functions and vice-versa >> > > What do you mean? e.g. How is the [1 2 3] a "function"? > > user> ([1 2 3] 0) 1 user> ([1 2 3] 2) 3 user> ({:a 1 :b 2} 0) nil user> ({:a 1 :b 2} :a) 1 > cs > --

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread Tomasz Sulej
user> ([1 2 3] 0) 1 user> ([1 2 3] 2) 3 user> ({:a 1 :b 2} 0) nil user> ({:a 1 :b 2} :a) 1 On Tue, 17 Jul 2018 at 22:44, Christian Seberino wrote: > > data are functions and vice-versa >> > > What do you mean? e.g. How is the [1 2 3] a "function"? > > cs > > -- > You received this message

Re: create vector from other vector and indices

2018-02-13 Thread Tomasz Sulej
Or even simpler: (map v idx) On 13 February 2018 at 20:48, Tomasz Sulej <tomek...@gmail.com> wrote: > (map #(v %) idx) > > or > > (map (partial get v) idx)) > > On 13 February 2018 at 20:10, Andre Bieler <andre.biele...@gmail.com> > wrote: > >> Just

Re: create vector from other vector and indices

2018-02-13 Thread Tomasz Sulej
(map #(v %) idx) or (map (partial get v) idx)) On 13 February 2018 at 20:10, Andre Bieler wrote: > Just started with clojure. > Lets say I have two vectors, v containing values and another vector idx > that contains the indices by which vector v should be ordered

Re: [ANN] Primitive Operator

2017-07-03 Thread Tomasz Sulej
this article may be helpful: http://insideclojure.org/2014/12/15/warn-on-boxed/ On 3 July 2017 at 13:36, Tomasz Sulej <tomek...@gmail.com> wrote: > When you decide to work with longs and doubles you can achieve the same in > pure clojure > Just add primitive type hints and (set!