Skip to content
/ blocks Public

Building blocks and code examples to write DSLs in Kotlin

Notifications You must be signed in to change notification settings

j0a0m4/blocks

Repository files navigation

Blocks

Building blocks to write DSLs in Kotlin

This project aims to provide friendly APIs to help design DSLs in Kotlin

DateTimePicker

With the DateTimePicker you're able to write dates in a natural way

lateinit var date: LocalDate

// You can implement the functional interface as a lambda
val started = LocalDatePicker { date = it }

// Emit this date to the started LocalDatePicker closure as 'it'
started on 26 March 2005

// Assert the values are equal
date shouldBe LocalDate.of(2005, MARCH, 26)

About

Building blocks and code examples to write DSLs in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages