Commit Graph

227 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 4c70d341b1 Added stdlib function withIndices() converting sequence (Iterable) to sequence of index-value pairs.
#KT-1195 fixed
2012-02-27 17:43:20 +04:00
James Strachan dd36efd24d support jquery style element / css style / id lookups of elements on a document/element - along with test cases 2012-02-27 08:50:03 +00:00
James Strachan 7f97f9710e added attribute lookup helper method 2012-02-24 17:54:03 +00:00
James Strachan 5841438134 added a nicer subscript navigation of DOM kinda like jquery but without the $ :) 2012-02-24 17:45:43 +00:00
James Strachan 9523be50de added not null helper methods for Set and Map 2012-02-24 17:25:59 +00:00
James Strachan 1a0467562d added a notEmpty() method to String? so its polymorphic with Collection? too; its easy to tell if a string/collection is not null and not empty 2012-02-24 07:04:47 +00:00
James Strachan cb7d23c420 added collection.toSortedSet() for easier conversion to sorted setsand collection.notNull() so its easy to treat a nullable collection/list as a collection 2012-02-24 07:04:47 +00:00
Alex Tkachman f6a37b9bd8 serialization of functions and tuples 2012-02-23 20:13:02 +02:00
Alex Tkachman f4bfffd714 global var replaced by thread local 2012-02-23 17:13:03 +02:00
Alex Tkachman 4f67177aa2 Revert "ability to compile text and small refactoring"
This reverts commit 4ddf101397.
2012-02-23 17:01:33 +02:00
James Strachan 6c3ec61b5c added some trim helper methods for trimming strings 2012-02-23 12:53:26 +00:00
Alex Tkachman 4ddf101397 ability to compile text and small refactoring 2012-02-23 14:12:28 +02:00
James Strachan cd70f06203 added notEmpty() helper method as its very common to want to do something if a collection is not empty; so if (foo.notEmpty()) is easier to read than if (!foo.isEmpty()) 2012-02-23 09:24:24 +00:00
Alex Tkachman 53bba59a4f dbl -> toDouble 2012-02-22 13:14:41 +02:00
Alex Tkachman cc8d263f9e preliminary support for intrinsics in std lib. javaClass<T> 2012-02-21 20:37:38 +02:00
Alex Tkachman fb8fa8bf9e intrinsic renamed to Intrinsic 2012-02-21 15:31:05 +02:00
Alex Tkachman 5e7de3f5ab getting rid of JetObject.getOuterObject 2012-02-21 15:13:16 +02:00
Alex Tkachman 25c1ece063 getting rid of TypeInfo 2012-02-21 14:58:18 +02:00
Alex Tkachman 8b622f97f4 getting rid of TypeInfo 2012-02-21 14:54:00 +02:00
James Strachan a68b00dfd4 renamed the rather long getOrElseUpdate to a simpler getOrPut which is a bit simpler and more accurate; as a new entry is put into the Map if its null 2012-02-21 11:29:50 +00:00
James Strachan 724f7860ab tried moving helper function to where the other global util functions are defined to try avoid namespace method disappearing 2012-02-21 11:29:50 +00:00
James Strachan e39aa727a9 added helper method for creating hash maps 2012-02-21 11:29:50 +00:00
James Strachan c308eb7b7f added link to issue 2012-02-21 11:29:50 +00:00
Andrey Breslav bff62484b1 KT-1306123.lng or 123.sht is not good name 2012-02-20 21:42:13 +04:00
James Strachan 094d5d2e70 added a few classes for doing property change listening (using pure kotlin code so its easier to work with JS and Java) 2012-02-20 15:38:34 +00:00
James Strachan 3d3b41da4f improved the DOM API a little with a few more helper methods and syntax sugar 2012-02-20 10:03:38 +00:00
Nikolay Krasko 795b30e7b0 KT-1259 Parameter info fails to extract parameter names from java method 2012-02-16 17:10:45 +04:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Alex Tkachman a6fdd0fd05 actors example - stock server 2012-02-10 11:37:34 +02:00
Alex Tkachman 8e6e8e938c def args in constructors 2012-02-09 20:36:09 +02:00
James Strachan d604272744 zapped the redundant getOrElse method as the ?: does indeed work with lazy expressions (no function definition required) - thanks for spotting this Andrey! :) 2012-02-09 06:25:52 +00:00
James Strachan 659fceecbe removed unnecessary getOrElse(value) method as we can use ?: (which is neater!) though shame it doesn't work for lazy values, passing a function body which is invoked if the value is not null 2012-02-08 11:45:59 +00:00
James Strachan ef269a9f81 added a simple builder API to the std.dom API 2012-02-08 07:57:18 +00:00
James Strachan a3cd65f10e added a little spike of a little std.dom API to make the W3C DOM API a little kooler 2012-02-08 07:57:18 +00:00
James Strachan 5057bf732e added a helper method for easily converting from a nullable type to a non nullable type with a non-lazy value, or lazy factory function 2012-02-08 07:57:18 +00:00
Alex Tkachman adfce7e22d KT-274 Enumeration.iterator() 2012-02-07 16:41:11 +02:00
svtk 6251b413a2 New check rules for inc, plus & plusAssign
KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
2012-02-03 12:10:12 +04:00
Alex Tkachman 948ccc5205 javaClass<T>() function 2012-02-03 09:46:40 +02:00
Alex Tkachman 43a2a27966 String.endWith & replace added 2012-02-03 08:48:03 +02:00
Alex Tkachman b63fbccba6 actors moved from stdlib to example 2012-02-02 13:02:48 +02:00
Alex Tkachman fd3ae3923a actors example and related bug fixes 2012-02-02 11:15:26 +02:00
Alex Tkachman ac729504bf functional list, queues and package for concurrent 2012-02-01 14:55:36 +02:00
Maxim Shafirov 699c43fe58 Simpler write() action
Useful Int.times(block) extension
2012-02-01 16:27:57 +04:00
Alex Tkachman 68a264154f fixing upgrade logic bug 2012-02-01 13:06:11 +02:00
Alex Tkachman e7812dc472 Executor.execute method added 2012-02-01 13:05:37 +02:00
Alex Tkachman 9559decfc0 some tweaks of VFS example to be more Kotlin 2012-02-01 10:48:28 +02:00
Alex Tkachman 5f9bab6c93 extension methods for j.i.Timer 2012-02-01 10:42:36 +02:00
Alex Tkachman cb04ed1eb8 currentThread global property 2012-02-01 10:08:39 +02:00
Alex Tkachman 745d1658aa locks support 2012-02-01 09:58:18 +02:00
Andrey Breslav 0a808617bb Temporary workaround: commenting out red code 2012-01-31 15:12:40 +04:00